Skip to content

Commit

Permalink
macros: Add uuid as a dev-dependency for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis-hamester committed Oct 31, 2024
1 parent 3a5292c commit ed0970c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,6 @@ features = [
"derive",
"introspection",
]

[dev-dependencies.uuid]
workspace = true
12 changes: 6 additions & 6 deletions macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,8 @@ pub fn generate(args: codegen::Args, emitter: &mut manyhow::Emitter) -> manyhow:
///
/// ```
/// # use aldrin::core::ServiceUuid;
/// # use aldrin::private::uuid::uuid;
/// # use aldrin_macros::{service, AsSerializeArg, Deserialize, Serialize};
/// # use uuid::uuid;
/// service! {
/// pub service Echo {
/// uuid = ServiceUuid(uuid!("ee98534d-345a-4399-a656-07fd9c39a96e"));
Expand Down Expand Up @@ -445,8 +445,8 @@ pub fn generate(args: codegen::Args, emitter: &mut manyhow::Emitter) -> manyhow:
///
/// ```
/// # use aldrin::core::ServiceUuid;
/// # use aldrin::private::uuid::uuid;
/// # use aldrin_macros::{service, AsSerializeArg, Deserialize, Serialize};
/// # use uuid::uuid;
/// mod my_reexports {
/// pub use aldrin as my_aldrin;
/// }
Expand All @@ -469,8 +469,8 @@ pub fn generate(args: codegen::Args, emitter: &mut manyhow::Emitter) -> manyhow:
///
/// ```
/// # use aldrin::core::ServiceUuid;
/// # use aldrin::private::uuid::uuid;
/// # use aldrin_macros::{service, AsSerializeArg, Deserialize, Serialize};
/// # use uuid::uuid;
/// service! {
/// #[aldrin(no_client)]
/// pub service Ping {
Expand All @@ -488,8 +488,8 @@ pub fn generate(args: codegen::Args, emitter: &mut manyhow::Emitter) -> manyhow:
///
/// ```
/// # use aldrin::core::ServiceUuid;
/// # use aldrin::private::uuid::uuid;
/// # use aldrin_macros::{service, AsSerializeArg, Deserialize, Serialize};
/// # use uuid::uuid;
/// service! {
/// #[aldrin(no_function_non_exhaustive, no_event_non_exhaustive)]
/// pub service Ping {
Expand All @@ -510,8 +510,8 @@ pub fn generate(args: codegen::Args, emitter: &mut manyhow::Emitter) -> manyhow:
///
/// ```
/// # use aldrin::core::ServiceUuid;
/// # use aldrin::private::uuid::uuid;
/// # use aldrin_macros::{service, AsSerializeArg, Deserialize, Serialize};
/// # use uuid::uuid;
/// service! {
/// #[aldrin(schema = "ping", introspection)]
/// pub service Ping {
Expand All @@ -526,8 +526,8 @@ pub fn generate(args: codegen::Args, emitter: &mut manyhow::Emitter) -> manyhow:
///
/// ```
/// # use aldrin::core::ServiceUuid;
/// # use aldrin::private::uuid::uuid;
/// # use aldrin_macros::{service, AsSerializeArg, Deserialize, Serialize};
/// # use uuid::uuid;
/// service! {
/// #[aldrin(schema = "ping", introspection_if = "introspection")]
/// pub service Ping {
Expand Down

0 comments on commit ed0970c

Please sign in to comment.