Skip to content

Commit

Permalink
Update version number
Browse files Browse the repository at this point in the history
  • Loading branch information
nemuelw committed Oct 26, 2024
1 parent 640bffd commit 4306b27
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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::*;
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4306b27

Please sign in to comment.