diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 24cc1c96..21e2bd3e 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -293,7 +293,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - path: [basic, actix_example, actix3_example, axum_example, graphql_example, rocket_example, poem_example, jsonrpsee_example, tonic_grpc_example] + path: [basic, actix_example, actix3_example, axum_example, graphql_example, rocket_example, poem_example, jsonrpsee_example, tonic_example] steps: - uses: actions/checkout@v2 diff --git a/examples/tonic_grpc_example/Cargo.toml b/examples/tonic_example/Cargo.toml similarity index 93% rename from examples/tonic_grpc_example/Cargo.toml rename to examples/tonic_example/Cargo.toml index d7b21933..60eb9faf 100644 --- a/examples/tonic_grpc_example/Cargo.toml +++ b/examples/tonic_example/Cargo.toml @@ -1,7 +1,8 @@ [package] -name = "tonic_grpc_example" +name = "sea-orm-tonic-example" version = "0.1.0" edition = "2021" +publish = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/examples/tonic_grpc_example/README.md b/examples/tonic_example/README.md similarity index 72% rename from examples/tonic_grpc_example/README.md rename to examples/tonic_example/README.md index 4356cecf..22ef798f 100644 --- a/examples/tonic_grpc_example/README.md +++ b/examples/tonic_example/README.md @@ -1,9 +1,7 @@ -# Tonic.rs + gRPC + SeaORM +# Tonic + gRPC + SeaORM Simple implementation of gRPC using SeaORM. -uses models actix_example - run server using ```bash cargo run --bin server diff --git a/examples/tonic_grpc_example/build.rs b/examples/tonic_example/build.rs similarity index 100% rename from examples/tonic_grpc_example/build.rs rename to examples/tonic_example/build.rs diff --git a/examples/tonic_grpc_example/entity/Cargo.toml b/examples/tonic_example/entity/Cargo.toml similarity index 100% rename from examples/tonic_grpc_example/entity/Cargo.toml rename to examples/tonic_example/entity/Cargo.toml diff --git a/examples/tonic_grpc_example/entity/src/lib.rs b/examples/tonic_example/entity/src/lib.rs similarity index 100% rename from examples/tonic_grpc_example/entity/src/lib.rs rename to examples/tonic_example/entity/src/lib.rs diff --git a/examples/tonic_grpc_example/entity/src/post.rs b/examples/tonic_example/entity/src/post.rs similarity index 100% rename from examples/tonic_grpc_example/entity/src/post.rs rename to examples/tonic_example/entity/src/post.rs diff --git a/examples/tonic_grpc_example/migration/Cargo.toml b/examples/tonic_example/migration/Cargo.toml similarity index 100% rename from examples/tonic_grpc_example/migration/Cargo.toml rename to examples/tonic_example/migration/Cargo.toml diff --git a/examples/tonic_grpc_example/migration/README.md b/examples/tonic_example/migration/README.md similarity index 100% rename from examples/tonic_grpc_example/migration/README.md rename to examples/tonic_example/migration/README.md diff --git a/examples/tonic_grpc_example/migration/src/lib.rs b/examples/tonic_example/migration/src/lib.rs similarity index 100% rename from examples/tonic_grpc_example/migration/src/lib.rs rename to examples/tonic_example/migration/src/lib.rs diff --git a/examples/tonic_grpc_example/migration/src/m20220120_000001_create_post_table.rs b/examples/tonic_example/migration/src/m20220120_000001_create_post_table.rs similarity index 100% rename from examples/tonic_grpc_example/migration/src/m20220120_000001_create_post_table.rs rename to examples/tonic_example/migration/src/m20220120_000001_create_post_table.rs diff --git a/examples/tonic_grpc_example/migration/src/main.rs b/examples/tonic_example/migration/src/main.rs similarity index 100% rename from examples/tonic_grpc_example/migration/src/main.rs rename to examples/tonic_example/migration/src/main.rs diff --git a/examples/tonic_grpc_example/proto/post.proto b/examples/tonic_example/proto/post.proto similarity index 100% rename from examples/tonic_grpc_example/proto/post.proto rename to examples/tonic_example/proto/post.proto diff --git a/examples/tonic_grpc_example/src/client.rs b/examples/tonic_example/src/client.rs similarity index 100% rename from examples/tonic_grpc_example/src/client.rs rename to examples/tonic_example/src/client.rs diff --git a/examples/tonic_grpc_example/src/lib.rs b/examples/tonic_example/src/lib.rs similarity index 100% rename from examples/tonic_grpc_example/src/lib.rs rename to examples/tonic_example/src/lib.rs diff --git a/examples/tonic_grpc_example/src/server.rs b/examples/tonic_example/src/server.rs similarity index 100% rename from examples/tonic_grpc_example/src/server.rs rename to examples/tonic_example/src/server.rs diff --git a/src/lib.rs b/src/lib.rs index 261a67e5..59e589e9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -34,6 +34,7 @@ //! //! + [Getting Started](https://www.sea-ql.org/SeaORM/docs/index) //! + [Usage Example](https://github.com/SeaQL/sea-orm/tree/master/examples/basic) +//! //! + [Rocket Example](https://github.com/SeaQL/sea-orm/tree/master/examples/rocket_example) //! + [Actix Example](https://github.com/SeaQL/sea-orm/tree/master/examples/actix_example) //! + [Axum Example](https://github.com/SeaQL/sea-orm/tree/master/examples/axum_example)