From 48a7e16933b0e54d230c2f99bc753f9fc3f56254 Mon Sep 17 00:00:00 2001 From: Rodolphe Marques Date: Fri, 25 Jan 2019 16:33:11 +0100 Subject: [PATCH] Align with the api provided by serde_json - 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 --- README.md | 5 +++++ rust-toolchain | 1 + src/lib.rs | 5 +++++ 3 files changed, 11 insertions(+) create mode 100644 rust-toolchain diff --git a/README.md b/README.md index 01c314c68..36b9ca2a1 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,11 @@ [`serde-json`]: https://crates.io/crates/serde_json +```toml +[dependencies] +serde-json-core = "0.0.1" +``` + ## [Documentation](https://japaric.github.io/serde-json-core/serde_json_core/) ## License diff --git a/rust-toolchain b/rust-toolchain new file mode 100644 index 000000000..bf867e0ae --- /dev/null +++ b/rust-toolchain @@ -0,0 +1 @@ +nightly diff --git a/src/lib.rs b/src/lib.rs index a92f52b4e..e639e8769 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -62,3 +62,8 @@ extern crate serde_derive; pub mod de; pub mod ser; + +#[doc(inline)] +pub use self::de::{from_slice, from_str}; +#[doc(inline)] +pub use self::ser::{to_string, to_vec};