From 31edb2c40979f438e18f619407899b72577b2de5 Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Tue, 5 Apr 2022 21:23:55 +0800 Subject: [PATCH] Rename --- .github/workflows/rust.yml | 2 +- examples/{tonic_grpc_example => tonic_example}/Cargo.toml | 3 ++- examples/{tonic_grpc_example => tonic_example}/README.md | 4 +--- examples/{tonic_grpc_example => tonic_example}/build.rs | 0 .../{tonic_grpc_example => tonic_example}/entity/Cargo.toml | 0 .../{tonic_grpc_example => tonic_example}/entity/src/lib.rs | 0 .../{tonic_grpc_example => tonic_example}/entity/src/post.rs | 0 .../migration/Cargo.toml | 0 .../{tonic_grpc_example => tonic_example}/migration/README.md | 0 .../migration/src/lib.rs | 0 .../migration/src/m20220120_000001_create_post_table.rs | 0 .../migration/src/main.rs | 0 .../{tonic_grpc_example => tonic_example}/proto/post.proto | 0 examples/{tonic_grpc_example => tonic_example}/src/client.rs | 0 examples/{tonic_grpc_example => tonic_example}/src/lib.rs | 0 examples/{tonic_grpc_example => tonic_example}/src/server.rs | 0 src/lib.rs | 1 + 17 files changed, 5 insertions(+), 5 deletions(-) rename examples/{tonic_grpc_example => tonic_example}/Cargo.toml (93%) rename examples/{tonic_grpc_example => tonic_example}/README.md (72%) rename examples/{tonic_grpc_example => tonic_example}/build.rs (100%) rename examples/{tonic_grpc_example => tonic_example}/entity/Cargo.toml (100%) rename examples/{tonic_grpc_example => tonic_example}/entity/src/lib.rs (100%) rename examples/{tonic_grpc_example => tonic_example}/entity/src/post.rs (100%) rename examples/{tonic_grpc_example => tonic_example}/migration/Cargo.toml (100%) rename examples/{tonic_grpc_example => tonic_example}/migration/README.md (100%) rename examples/{tonic_grpc_example => tonic_example}/migration/src/lib.rs (100%) rename examples/{tonic_grpc_example => tonic_example}/migration/src/m20220120_000001_create_post_table.rs (100%) rename examples/{tonic_grpc_example => tonic_example}/migration/src/main.rs (100%) rename examples/{tonic_grpc_example => tonic_example}/proto/post.proto (100%) rename examples/{tonic_grpc_example => tonic_example}/src/client.rs (100%) rename examples/{tonic_grpc_example => tonic_example}/src/lib.rs (100%) rename examples/{tonic_grpc_example => tonic_example}/src/server.rs (100%) 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)