From aefa8426244f1bd5e1e174ccf771906e17229c84 Mon Sep 17 00:00:00 2001 From: Gwilym Inzani Date: Wed, 12 Jul 2023 12:18:02 +0100 Subject: [PATCH] Add a std feature instead --- agb-tracker-interop/Cargo.toml | 5 +++-- agb-tracker-interop/src/lib.rs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/agb-tracker-interop/Cargo.toml b/agb-tracker-interop/Cargo.toml index ddfb9ff4..fe31639a 100644 --- a/agb-tracker-interop/Cargo.toml +++ b/agb-tracker-interop/Cargo.toml @@ -8,7 +8,8 @@ repository = "https://github.com/agbrs/agb" [features] default = ["quote"] -quote = ["dep:quote"] +quote = ["dep:quote", "std"] +std = [] [dependencies] -quote = "1" \ No newline at end of file +quote = { version = "1", optional = true } \ No newline at end of file diff --git a/agb-tracker-interop/src/lib.rs b/agb-tracker-interop/src/lib.rs index 2ac3961f..8731421b 100644 --- a/agb-tracker-interop/src/lib.rs +++ b/agb-tracker-interop/src/lib.rs @@ -1 +1 @@ -#![cfg_attr(not(feature(quote)), no_std)] +#![cfg_attr(not(feature = "std"), no_std)]