Skip to content

Commit

Permalink
fix: adds missing serde feature to the examples
Browse files Browse the repository at this point in the history
  • Loading branch information
claymcleod committed Jan 29, 2025
1 parent 424b554 commit c3e8c21
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,23 @@ types = ["dep:url"]

[[example]]
name = "simple"
required-features = ["client"]
required-features = ["client", "serde"]

[[example]]
name = "service-info"
required-features = ["client"]
required-features = ["client", "serde"]

[[example]]
name = "task-get"
required-features = ["client"]
required-features = ["client", "serde"]

[[example]]
name = "task-list-all"
required-features = ["client"]
required-features = ["client", "serde"]

[[example]]
name = "task-submit"
required-features = ["client"]
required-features = ["client", "serde"]

[lints.rust]
missing_docs = "warn"
Expand Down
4 changes: 2 additions & 2 deletions examples/service-info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//!
//! You can run this with the following command:
//!
//! `TOKEN=<TOKEN> RUST_LOG=tes=debug cargo run --release --features=client
//! --example service-info <URL>`
//! `TOKEN=<TOKEN> RUST_LOG=tes=debug cargo run --release
//! --features=client,serde --example service-info <URL>`
use anyhow::Context;
use anyhow::Result;
Expand Down
2 changes: 1 addition & 1 deletion examples/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//!
//! You can run this with the following command:
//!
//! `cargo run --release --features=client --example simple <URL>`
//! `cargo run --release --features=client,serde --example simple <URL>`
use tes::v1::client;

Expand Down
4 changes: 2 additions & 2 deletions examples/task-get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//!
//! You can run this with the following command:
//!
//! `TOKEN=<TOKEN> RUST_LOG=tes=debug cargo run --release --features=client
//! --example task-submit <URL> <ID>`
//! `TOKEN=<TOKEN> RUST_LOG=tes=debug cargo run --release
//! --features=client,serde --example task-submit <URL> <ID>`
use anyhow::Context;
use anyhow::Result;
Expand Down
4 changes: 2 additions & 2 deletions examples/task-list-all.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//!
//! You can run this with the following command:
//!
//! `TOKEN=<TOKEN> RUST_LOG=tes=debug cargo run --release --features=client
//! --example task-list-all <URL>`
//! `TOKEN=<TOKEN> RUST_LOG=tes=debug cargo run --release
//! --features=client,serde --example task-list-all <URL>`
use anyhow::Context;
use anyhow::Result;
Expand Down
4 changes: 2 additions & 2 deletions examples/task-submit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//!
//! You can run this with the following command:
//!
//! `TOKEN=<TOKEN> RUST_LOG=tes=debug cargo run --release --features=client
//! --example task-submit <URL>`
//! `TOKEN=<TOKEN> RUST_LOG=tes=debug cargo run --release
//! --features=client,serde --example task-submit <URL>`
use anyhow::Context;
use anyhow::Result;
Expand Down

0 comments on commit c3e8c21

Please sign in to comment.