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

Increase max with to 120

This commit is contained in:
RGBCube 2025-02-11 23:35:05 +03:00
parent 9ec0768a8e
commit 3d45164562
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M
7 changed files with 49 additions and 62 deletions

View file

@ -1,17 +1,17 @@
[package]
name = "embd"
name = "embd"
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"]
[dependencies]
embd-macros = "0.1"

View file

@ -171,15 +171,9 @@ fn read_dir(directory: &Path) -> Vec<DirEntry> {
let filetype = entry.file_type().expect("Failed to read entry filetype");
let path = entry
.path()
.canonicalize()
.expect("Failed to canonicalize path");
let path = entry.path().canonicalize().expect("Failed to canonicalize path");
let path_str = path
.to_str()
.expect("Failed to convert OsStr to str")
.to_string();
let path_str = path.to_str().expect("Failed to convert OsStr to str").to_string();
if filetype.is_dir() {
let children = read_dir(&path);
@ -210,10 +204,7 @@ pub fn __dir_runtime(neighbor: &str, path: &str) -> Dir {
.canonicalize()
.expect("Failed to canonicalize path");
let directory_str = directory
.to_str()
.expect("Failed to convert OsStr to str")
.to_string();
let directory_str = directory.to_str().expect("Failed to convert OsStr to str").to_string();
let children = read_dir(&directory);