Skip to content

Commit

Permalink
Merge pull request #225 from boozook/rem-unstable-cfg
Browse files Browse the repository at this point in the history
Remove unstable cargo cfg from inited project (#221)
  • Loading branch information
boozook authored Mar 21, 2024
2 parents d3b321a + 0e4c678 commit db1a132
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cargo/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-playdate"
version = "0.3.15"
version = "0.3.16"
readme = "README.md"
description = "Build tool for neat yellow console."
keywords = ["playdate", "build", "cargo", "plugin", "cargo-subcommand"]
Expand Down
10 changes: 6 additions & 4 deletions cargo/src/init/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,13 +383,15 @@ fn cargo_config<P: AsRef<Path>>(config: &Config, path: P) -> CargoResult<()> {


// unstable features:
// NOTE: removed as workaround for issue:
// https://github.com/boozook/playdate/issues/221
let mut unstable = toml::Table::new();
unstable.insert("unstable-options".into(), true.into());
unstable.insert("avoid-dev-deps".into(), true.into());
let check_cfg: Vec<toml::Value> = ["names", "values", "output"].into_iter()
.map(|s| toml::Value::String(s.to_string()))
.collect();
unstable.insert("check-cfg".into(), check_cfg.into());
// let check_cfg: Vec<toml::Value> = ["names", "values", "output"].into_iter()
// .map(|s| toml::Value::String(s.to_string()))
// .collect();
// unstable.insert("check-cfg".into(), check_cfg.into());
doc.insert("unstable".into(), unstable.into());


Expand Down

0 comments on commit db1a132

Please sign in to comment.