Add an explicit std feature so that features are purely additive.

This commit is contained in:
Dan Gohman
2018-02-13 17:48:04 -08:00
parent 61db54c447
commit e37f45667f
10 changed files with 41 additions and 27 deletions

View File

@@ -12,7 +12,9 @@ readme = "README.md"
name = "cton_frontend"
[dependencies]
cretonne = { path = "../cretonne", version = "0.1.0" }
cretonne = { path = "../cretonne", version = "0.1.0", default-features = false }
[features]
default = ["std"]
std = ["cretonne/std"]
no_std = ["cretonne/no_std"]