You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// The name of the WASM and JS files generated by wasm-bindgen. Defaults to the crate name with underscores instead of dashes
The docs claim this refers to the crate name, but because crates are compiled independently, this name is always "leptos_config".
Should it be changed to CARGO_PKG_NAME instead?
MRE
#Cargo.toml
[package]
name = "repro"
version = "0.1.0"
edition = "2021"
[dependencies]
leptos = { version = "0.6.15" }
// src/main.rs
fn main() {
use leptos::*;
println!("Crate name is {}", env!("CARGO_CRATE_NAME"));
let options = LeptosOptions::builder().build();
let default_options = LeptosOptions::default();
println!("Options output name is {}", options.output_name);
println!("Default options output name is {}", default_options.output_name);
}
$ cargo run -q
Crate name is repro
Options output name is leptos_config
Default options output name is leptos_config
The text was updated successfully, but these errors were encountered:
leptos/leptos_config/src/lib.rs
Line 28 in 89f26f6
The docs claim this refers to the crate name, but because crates are compiled independently, this name is always "leptos_config".
Should it be changed to
CARGO_PKG_NAME
instead?MRE
The text was updated successfully, but these errors were encountered: