Skip to content

Commit

Permalink
Exclude tests folder and Gir.toml, versions.txt files from being publ…
Browse files Browse the repository at this point in the history
…ished
  • Loading branch information
pentamassiv committed Aug 7, 2023
1 parent 77bac6e commit 1bcc926
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/codegen/sys/cargo_toml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ fn fill_in(root: &mut Table, env: &Env) {
let package = upsert_table(root, "package");
set_string(package, "build", "build.rs");
// set_string(package, "version", "0.2.0");

if let toml::map::Entry::Vacant(_) = package.entry("include") {
package.entry("exclude").or_insert_with(|| {
Value::Array(vec![
Value::String("tests".to_string()),
Value::String("Gir.toml".to_string()),
Value::String("versions.txt".to_string()),
])
});
}
}

{
Expand Down

0 comments on commit 1bcc926

Please sign in to comment.