From c8cd9b447edb1d4ddcc269c44c29276fbb87e8b1 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Thu, 22 Feb 2024 11:35:17 +0300 Subject: [PATCH] Oops, features aren't the same as cfg options --- README.md | 4 ++-- embd-macros/Cargo.toml | 2 +- embd-macros/src/lib.rs | 2 +- embd/Cargo.toml | 2 +- embd/README.md | 4 ++-- embd/src/lib.rs | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) 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,