1
Fork 0
mirror of https://github.com/RGBCube/embd-rs synced 2025-07-27 05:27:44 +00:00

Oops, features aren't the same as cfg options

This commit is contained in:
RGBCube 2024-02-22 11:35:17 +03:00
parent 53f550c9c0
commit c8cd9b447e
No known key found for this signature in database
6 changed files with 8 additions and 8 deletions

View file

@ -29,8 +29,8 @@ let dir: embd::Dir = embd::dir!("path/to");
let files: Vec<embd::File> = dir.flatten(); let files: Vec<embd::File> = dir.flatten();
``` ```
Note that you will need to enable the `procmacro2_semver_exempt` feature Note that you will need to enable the `procmacro2_semver_exempt` cfg
to use this crate, you can enable it like so, by putting this in option to use this crate, you can enable it like so, by putting this in
`.cargo/config.toml` in the project root: `.cargo/config.toml` in the project root:
```toml ```toml

View file

@ -6,7 +6,7 @@ license = "MIT"
keywords = [ "embedding", "files", "debug-optimization", "bundling" ] keywords = [ "embedding", "files", "debug-optimization", "bundling" ]
categories = [ "filesystem" ] categories = [ "filesystem" ]
authors = [ "RGBCube" ] authors = [ "RGBCube" ]
version = "0.1.0" version = "0.1.1"
edition = "2021" edition = "2021"
[lib] [lib]

View file

@ -1,4 +1,4 @@
#![cfg(feature = "procmacro2_semver_exempt")] #![cfg(procmacro2_semver_exempt)]
use std::{ use std::{
fs, fs,
path::Path, path::Path,

View file

@ -6,7 +6,7 @@ license = "MIT"
keywords = [ "embedding", "files", "debug-optimization", "bundling" ] keywords = [ "embedding", "files", "debug-optimization", "bundling" ]
categories = [ "filesystem" ] categories = [ "filesystem" ]
authors = [ "RGBCube" ] authors = [ "RGBCube" ]
version = "0.1.0" version = "0.1.1"
edition = "2021" edition = "2021"
[dependencies] [dependencies]

View file

@ -29,8 +29,8 @@ let dir: embd::Dir = embd::dir!("path/to");
let files: Vec<embd::File> = dir.flatten(); let files: Vec<embd::File> = dir.flatten();
``` ```
Note that you will need to enable the `procmacro2_semver_exempt` feature Note that you will need to enable the `procmacro2_semver_exempt` cfg
to use this crate, you can enable it like so, by putting this in option to use this crate, you can enable it like so, by putting this in
`.cargo/config.toml` in the project root: `.cargo/config.toml` in the project root:
```toml ```toml

View file

@ -1,4 +1,4 @@
#![cfg(feature = "procmacro2_semver_exempt")] #![cfg(procmacro2_semver_exempt)]
use std::{ use std::{
borrow::Cow, borrow::Cow,
fs, fs,