Skip to content

Commit

Permalink
Correctly sync docs.rs section between cargo.tomls.
Browse files Browse the repository at this point in the history
  • Loading branch information
bodil committed Dec 16, 2019
1 parent 99712ff commit 8af33a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ fn main() {
out["dependencies"] = src["dependencies"].clone();
out["dev-dependencies"] = src["dev-dependencies"].clone();
out["build-dependencies"] = src["build-dependencies"].clone();
out["package.metadata.docs.rs"] = src["build-dependencies"].clone();
write("./rc/Cargo.toml", out.to_string()).expect("unable to write rc/Cargo.toml!");
} else if &command == "check" {
if !compare(&src["package"]["version"], &out["package"]["version"])
Expand Down
9 changes: 6 additions & 3 deletions rc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ categories = ["data-structures"]
keywords = ["immutable", "persistent", "hamt", "b-tree", "rrb-tree"]
build = "../build.rs"

[package.metadata.docs.rs]
all-features = true

[lib]
path = "../src/lib.rs"

[badges]
travis-ci = { repository = "bodil/im-rs" }

[package.metadata.docs.rs]
all-features = true

[build-dependencies]
version_check = "0.9"

Expand All @@ -46,3 +46,6 @@ rand = { version = "0.7", features = ["small_rng"] }
pretty_assertions = "0.6"
metrohash = "1.0.6"
proptest-derive = "0.1.0"

["package.metadata.docs.rs"]
version_check = "0.9"

0 comments on commit 8af33a2

Please sign in to comment.