mirror of
https://github.com/RGBCube/embd-rs
synced 2025-07-28 14:07:45 +00:00
Increase max with to 120
This commit is contained in:
parent
9ec0768a8e
commit
3d45164562
7 changed files with 49 additions and 62 deletions
|
@ -1,22 +1,22 @@
|
|||
[package]
|
||||
name = "embd-macros"
|
||||
name = "embd-macros"
|
||||
description = "Read files or directories from the filesystem at runtime on debug, embed on release."
|
||||
repository = "https://github.com/RGBCube/embd-rs"
|
||||
license = "MIT"
|
||||
keywords = [ "embedding", "files", "debug-optimization", "bundling" ]
|
||||
categories = [ "filesystem" ]
|
||||
authors = [ "RGBCube" ]
|
||||
version = "0.1.5"
|
||||
edition = "2021"
|
||||
include = [ "src/**/*.rs", "../README.md" ]
|
||||
repository = "https://github.com/RGBCube/embd-rs"
|
||||
license = "MIT"
|
||||
keywords = ["embedding", "files", "debug-optimization", "bundling"]
|
||||
categories = ["filesystem"]
|
||||
authors = ["RGBCube"]
|
||||
version = "0.1.5"
|
||||
edition = "2021"
|
||||
include = ["src/**/*.rs", "../README.md"]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
rustc-args = [ "--cfg", "procmacro2_semver_exempt" ]
|
||||
rustc-args = ["--cfg", "procmacro2_semver_exempt"]
|
||||
|
||||
[lib]
|
||||
proc-macro = true
|
||||
|
||||
[dependencies]
|
||||
proc-macro2 = { version = "1", features = [ "span-locations" ] }
|
||||
quote = "1"
|
||||
syn = "2"
|
||||
proc-macro2 = { version = "1", features = ["span-locations"] }
|
||||
quote = "1"
|
||||
syn = "2"
|
||||
|
|
|
@ -78,10 +78,7 @@ fn dir_release(input: TokenStream, path: &str) -> TokenStream {
|
|||
|
||||
let base = neighbor.parent().expect("Failed to get the parent of file");
|
||||
|
||||
let directory = base
|
||||
.join(path)
|
||||
.canonicalize()
|
||||
.expect("Failed to canonicalize path");
|
||||
let directory = base.join(path).canonicalize().expect("Failed to canonicalize path");
|
||||
|
||||
let directory_str = directory.to_str().expect("Failed to convert OsStr to str");
|
||||
|
||||
|
@ -108,9 +105,7 @@ fn read_dir(directory: &Path) -> TokenVec {
|
|||
.to_str()
|
||||
.expect("Failed to get the string representation of PathBuf");
|
||||
|
||||
let filetype = fs::metadata(&path)
|
||||
.expect("Failed to get file metadata")
|
||||
.file_type();
|
||||
let filetype = fs::metadata(&path).expect("Failed to get file metadata").file_type();
|
||||
|
||||
if filetype.is_dir() {
|
||||
let children = read_dir(&path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue