From 1ec074d6af29bf56ce00bb12aafb2d3e10790a69 Mon Sep 17 00:00:00 2001 From: Mingun Date: Mon, 13 Mar 2023 19:35:47 +0500 Subject: [PATCH] Add path argument to an example otherwise `cargo package` complains --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index c1e7fdac..fe0e1f91 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -190,6 +190,9 @@ all-features = true # See https://stackoverflow.com/questions/61417452 rustdoc-args = ["--cfg", "docs_rs"] +# Tests, benchmarks and examples doesn't included in package on crates.io, +# so we need to specify a path, otherwise `cargo package` complains + [[test]] name = "encodings" required-features = ["encoding"] @@ -228,3 +231,4 @@ path = "tests/async-tokio.rs" [[example]] name = "read_nodes_serde" required-features = ["serialize"] +path = "examples/read_nodes_serde.rs"