Skip to content

Commit

Permalink
refactor(runner): use publish = false when creating the runner
Browse files Browse the repository at this point in the history
Now that we bumped the MSRV, we can use `publish = false` to make it
explicit that this package is not supposed to be published.
  • Loading branch information
ronnychevalier committed Jul 26, 2024
1 parent b0bc4c8 commit 9bdb9aa
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions src/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,28 +37,26 @@ impl RunnerBuilder {
};

let manifest = format!(
r#"
[package]
name = "package-multivers"
version = "0.1.0"
edition = "2021"
[dependencies]
{dependency}
[profile.release]
lto = true
strip = "symbols"
opt-level = "z"
codegen-units = 1
panic = "abort"
[workspace]
r#"[package]
name = "package-multivers"
publish = false
edition = "2021"
[dependencies]
{dependency}
[profile.release]
lto = true
strip = "symbols"
opt-level = "z"
codegen-units = 1
panic = "abort"
[workspace]
"#
);
let main = b"
#![no_main]
pub use multivers_runner::main;
let main = b"#![no_main]
pub use multivers_runner::main;
";

std::fs::create_dir_all(&src_directory)?;
Expand Down

0 comments on commit 9bdb9aa

Please sign in to comment.