Commit 1ceb2bb
Merge #8
8: Align with the api provided by serde_json r=japaric a=r-marques
- Re-export to_* and from_* methods in the root of the crate
- Added a rust-toolchain file to set rustup to nightly by default
- Update README to make it explicit there is a crate published in crates.io
This merge request makes it easier to replace `serde_json` with `serde_json_core` when building with no_std.
Example:
```rust
#[cfg(not(feature = "std"))]
use serde_json_core as serde_json;
let deserialized = serde_json::from_str("...").unwrap();
```
Co-authored-by: Rodolphe Marques <marques.rodolphe@gmail.com>3 files changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
7 | 12 | | |
8 | 13 | | |
9 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
0 commit comments