Read file and formats

⚓ Rust    📅 2025-12-02    👤 surdeus    👁️ 2      

surdeus

Info

This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Read file and formats

Hi to everyone,
I achieve this point:

let license_path = Path::new(path).join("LICENSE.md");
// LICENSE.md have {author} string
let license_string = format!(license_path)

but the format! macro acing on compile time and doesn't work here...
Anyone know how I can do it?
Thanks so much

5 posts - 3 participants

Read full topic

🏷️ Rust_feed