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
However, when the plugin section includes a float literal (e.g. 0.5), building fails with the following error:
error[E0277]: the trait bound `serde_json::Number: std::convert::From<f64>` is not satisfied
--> src-tauri\src\main.rs:541:14
|
541 | .run(tauri::generate_context!())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::From<f64>` is not implemented for `serde_json::Number`
|
= help: the following other types implement trait `std::convert::From<T>`:
<serde_json::Number as std::convert::From<isize>>
<serde_json::Number as std::convert::From<i8>>
<serde_json::Number as std::convert::From<i16>>
<serde_json::Number as std::convert::From<i32>>
<serde_json::Number as std::convert::From<i64>>
<serde_json::Number as std::convert::From<usize>>
<serde_json::Number as std::convert::From<u8>>
<serde_json::Number as std::convert::From<u16>>
and 3 others
= note: required for `f64` to implement `std::convert::Into<serde_json::Number>`
= note: this error originates in the macro `tauri::generate_context` (in Nightly builds, run with -Z macro-backtrace for more info)
Reproduction
In a Tauri application, fill the tauri.conf.json's "plugins" section with an arbitrary plugin name, containing a float value somewhere in it, e.g.
error[E0277]: the trait bound `serde_json::Number: std::convert::From<f64>` is not satisfied
--> src-tauri\src\main.rs:541:14
|
541 | .run(tauri::generate_context!())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::From<f64>` is not implemented for `serde_json::Number`
|
= help: the following other types implement trait `std::convert::From<T>`:
<serde_json::Number as std::convert::From<isize>>
<serde_json::Number as std::convert::From<i8>>
<serde_json::Number as std::convert::From<i16>>
<serde_json::Number as std::convert::From<i32>>
<serde_json::Number as std::convert::From<i64>>
<serde_json::Number as std::convert::From<usize>>
<serde_json::Number as std::convert::From<u8>>
<serde_json::Number as std::convert::From<u16>>
and 3 others
= note: required for `f64` to implement `std::convert::Into<serde_json::Number>`
= note: this error originates in the macro `tauri::generate_context` (in Nightly builds, run with -Z macro-backtrace for more info)
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
When writing a plugin, you can provide configurations through
tauri.conf.json
in the"plugins"
section, e.g.:However, when the plugin section includes a float literal (e.g.
0.5
), building fails with the following error:Reproduction
In a Tauri application, fill the
tauri.conf.json
's"plugins"
section with an arbitrary plugin name, containing a float value somewhere in it, e.g.Expected behavior
Building succeeds.
Platform and versions
Stack trace
Additional context
No response
The text was updated successfully, but these errors were encountered: