-
i.e. I would expect
```rs
#[derive(Display)]
#[display(rename="snake_case")]
enum Test{
First
}
println!("{}", Test::First) // -> prints "first"
```
The serde behaviour is documented h…
-
When I used cranelift-reader to read the functions of Cranelift IR, the following error occurred:
```
parsing error: ParseError { location: Location { line_number: 9 }, message: "expected block head…
-
Without deny_unknown_fields, Serde may matched any message to '{}'. Getting a stricter control is especially important for transaction that send '{}' as response (i.e. StatusNotification). As a resul…
-
Using serde `rename` causes proc-macro panic. Maybe avoid using `rename` field macro and change it to the `structmap` instead?
Actually any macro (serde default, serde rename, utoipa schema…) cause…
-
Hi! Thank you for the great library!
Let's consider this snippet:
```python
@serde.serde(type_check=serde.Strict)
@dataclass
class A:
b: Optional[int]
```
Here, I require the field `…
-
This is one way to e.g. successfully roundtrip things like `Option` into formats that have `unwrap_or_null` behavior by default (as opposed to e.g. `double_option` or `unwrap_or_skip`).
Example imp…
CAD97 updated
3 years ago
-
Hi! Thanks a lot for all the work put in this library!
I am interested in moving a custom pre-tokenizer I have created as a Python class via PyO3. Here is an example:
```rust
use tokenizers::toke…
-
I have toolchain with rustc 1.78
```
~/s/s/protocols (dev) [1]> rustup show
Default host: x86_64-unknown-linux-gnu
rustup home: /home/lorban/.rustup
installed toolchains
-------------------…
-
Hello!
I am implementing a custom logger that prints a JSON serialized struct. The struct has a field `custom_list: Option` that should be derived from `log::kv::Value`. However I could not figure …
lcmgh updated
2 weeks ago
-
The crate fails to deserialize this JSON, when `arbitrary_precision` feature is enabled:
```
{
"data": {
"field": 1.0
},
"kind": "Variant"
}
```
A reproducible snippet t…