mirror of
https://github.com/RGBCube/embd-rs
synced 2025-07-27 13:37:44 +00:00
Oops, features aren't the same as cfg options
This commit is contained in:
parent
53f550c9c0
commit
c8cd9b447e
6 changed files with 8 additions and 8 deletions
|
@ -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]
|
||||
|
|
|
@ -29,8 +29,8 @@ let dir: embd::Dir = embd::dir!("path/to");
|
|||
let files: Vec<embd::File> = 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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#![cfg(feature = "procmacro2_semver_exempt")]
|
||||
#![cfg(procmacro2_semver_exempt)]
|
||||
use std::{
|
||||
borrow::Cow,
|
||||
fs,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue