diff --git a/README.md b/README.md index d378893..255bb29 100644 --- a/README.md +++ b/README.md @@ -29,8 +29,8 @@ let dir: embd::Dir = embd::dir!("path/to"); let files: Vec = dir.flatten(); ``` -Note that you will need to enable the `procmacro2_semver_exempt` feature -to use this crate, you can enable it like so, by putting this in +Note that you will need to enable the `procmacro2_semver_exempt` cfg +option to use this crate, you can enable it like so, by putting this in `.cargo/config.toml` in the project root: ```toml diff --git a/embd-macros/Cargo.toml b/embd-macros/Cargo.toml index 1e2439f..3197baf 100644 --- a/embd-macros/Cargo.toml +++ b/embd-macros/Cargo.toml @@ -6,7 +6,7 @@ license = "MIT" keywords = [ "embedding", "files", "debug-optimization", "bundling" ] categories = [ "filesystem" ] authors = [ "RGBCube" ] -version = "0.1.0" +version = "0.1.1" edition = "2021" [lib] diff --git a/embd-macros/src/lib.rs b/embd-macros/src/lib.rs index 5315051..6a755a4 100644 --- a/embd-macros/src/lib.rs +++ b/embd-macros/src/lib.rs @@ -1,4 +1,4 @@ -#![cfg(feature = "procmacro2_semver_exempt")] +#![cfg(procmacro2_semver_exempt)] use std::{ fs, path::Path, diff --git a/embd/Cargo.toml b/embd/Cargo.toml index 51fab70..0c133bd 100644 --- a/embd/Cargo.toml +++ b/embd/Cargo.toml @@ -6,7 +6,7 @@ license = "MIT" keywords = [ "embedding", "files", "debug-optimization", "bundling" ] categories = [ "filesystem" ] authors = [ "RGBCube" ] -version = "0.1.0" +version = "0.1.1" edition = "2021" [dependencies] diff --git a/embd/README.md b/embd/README.md index d378893..255bb29 100644 --- a/embd/README.md +++ b/embd/README.md @@ -29,8 +29,8 @@ let dir: embd::Dir = embd::dir!("path/to"); let files: Vec = dir.flatten(); ``` -Note that you will need to enable the `procmacro2_semver_exempt` feature -to use this crate, you can enable it like so, by putting this in +Note that you will need to enable the `procmacro2_semver_exempt` cfg +option to use this crate, you can enable it like so, by putting this in `.cargo/config.toml` in the project root: ```toml diff --git a/embd/src/lib.rs b/embd/src/lib.rs index 4b61175..462eb0e 100644 --- a/embd/src/lib.rs +++ b/embd/src/lib.rs @@ -1,4 +1,4 @@ -#![cfg(feature = "procmacro2_semver_exempt")] +#![cfg(procmacro2_semver_exempt)] use std::{ borrow::Cow, fs,