Add a std feature instead

This commit is contained in:
Gwilym Inzani 2023-07-12 12:18:02 +01:00
parent d903aa164b
commit aefa842624
2 changed files with 4 additions and 3 deletions

View file

@ -8,7 +8,8 @@ repository = "https://github.com/agbrs/agb"
[features] [features]
default = ["quote"] default = ["quote"]
quote = ["dep:quote"] quote = ["dep:quote", "std"]
std = []
[dependencies] [dependencies]
quote = "1" quote = { version = "1", optional = true }

View file

@ -1 +1 @@
#![cfg_attr(not(feature(quote)), no_std)] #![cfg_attr(not(feature = "std"), no_std)]