diff --git a/Cargo.lock b/Cargo.lock index c3c6c82..a14f63f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -54,7 +54,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "cjson-rs" -version = "0.2.2" +version = "0.2.3" dependencies = [ "bindgen", "libc", diff --git a/Cargo.toml b/Cargo.toml index 22bdaef..46bc600 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "cjson-rs" description = "Rust bindings for the cJSON library" license = "MIT" -version = "0.2.2" +version = "0.2.3" edition = "2021" [build-dependencies] diff --git a/README.md b/README.md index 2529182..c5ea9d4 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,13 @@ Make sure you have the [cJSON](https://github.com/DaveGamble/cJSON) library prop - `CJSON_INCLUDE_PATH` specifies where the compiler should look for the `cJSON.h` header file during the compilation process eg. `/usr/include/cjson`. - `CJSON_LIB_PATH` specifies where the linker should look for precompiled cJSON library files eg. `/usr/local/lib`. -- Update your `Cargo.toml` file: +- Update your `Cargo.toml` file by adding this to the `[dependencies]` section: ```toml - cjson-rs = "0.1.0" + cjson-rs = "0.2.3" ``` -- Import the crate to start using it: +- Import the crate in your source file(s) to start using it: ```rust use cjson_rs::*; diff --git a/src/lib.rs b/src/lib.rs index 100eb1c..4127372 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,7 +14,7 @@ pub const CJSON_VERSION_PATCH: u32 = bindings::CJSON_VERSION_PATCH; /// /// fn main() { /// assert_eq!( -/// cjson_version(), +/// cjson_version(), /// format!("{}.{}.{}", CJSON_VERSION_MAJOR, CJSON_VERSION_MINOR, CJSON_VERSION_PATCH) /// ); /// println!("Test passed"); // output: Test passed