Expand description
Helpers for testing cargo package
/ cargo publish
ยงExample
validate_upload(
r#"
{
"authors": [],
"badges": {},
"categories": [],
"deps": [],
"description": "foo",
"documentation": null,
"features": {},
"homepage": null,
"keywords": [],
"license": "MIT",
"license_file": null,
"links": null,
"name": "foo",
"readme": null,
"readme_file": null,
"repository": null,
"rust_version": null,
"vers": "0.0.1"
}
"#,
"foo-0.0.1.crate",
&["Cargo.lock", "Cargo.toml", "Cargo.toml.orig", "src/main.rs"],
);
Functionsยง
- _validate_
upload ๐ - create_
index_ ๐line - read_
le_ ๐u32 - read_
new_ ๐post - split_
index_ ๐features - validate_
alt_ upload - Check the
cargo publish
API call to the alternative test registry - validate_
crate_ contents - Checks the contents of a
.crate
file. - validate_
crate_ ๐contents_ - validate_
upload - Check the
cargo publish
API call - validate_
upload_ with_ contents - Check the
cargo publish
API call, with file contents - write_
to_ ๐index