Skip to content

Commit

Permalink
enable std in compiled binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
tjjfvi committed Apr 10, 2024
1 parent eb2c4ac commit 8bb8a61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ fn compile_executable(target: &str, host: Arc<Mutex<host::Host>>) -> Result<(),
}
let cargo_toml = include_str!("../Cargo.toml");
let mut cargo_toml = cargo_toml.split_once("##--COMPILER-CUTOFF--##").unwrap().0.to_owned();
cargo_toml.push_str("[features]\ndefault = ['cli']\ncli = ['dep:clap']");
cargo_toml.push_str("[features]\ndefault = ['cli']\ncli = ['std', 'dep:clap']\nstd = []");

macro_rules! include_files {
($([$($prefix:ident)*])? $mod:ident {$($sub:tt)*} $($rest:tt)*) => {
Expand Down

0 comments on commit 8bb8a61

Please sign in to comment.