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:
parent
53f550c9c0
commit
c8cd9b447e
6 changed files with 8 additions and 8 deletions
|
@ -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
|
||||||
|
|
|
@ -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]
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#![cfg(feature = "procmacro2_semver_exempt")]
|
#![cfg(procmacro2_semver_exempt)]
|
||||||
use std::{
|
use std::{
|
||||||
fs,
|
fs,
|
||||||
path::Path,
|
path::Path,
|
||||||
|
|
|
@ -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]
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#![cfg(feature = "procmacro2_semver_exempt")]
|
#![cfg(procmacro2_semver_exempt)]
|
||||||
use std::{
|
use std::{
|
||||||
borrow::Cow,
|
borrow::Cow,
|
||||||
fs,
|
fs,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue