Skip to content

Commit

Permalink
bump msrv and crate versions, remove std::error references
Browse files Browse the repository at this point in the history
  • Loading branch information
knickish committed Dec 11, 2024
1 parent a7113a2 commit 6a48d55
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 30 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "nanoserde"
version = "0.2.0-beta.2"
version = "0.2.0"
authors = ["makepad <[email protected]>", "Fedor <[email protected]>"]
license = "MIT OR Apache-2.0"
description = """Serialization library with zero dependencies.
Supports Binary, JSON, RON and TOML."""
edition = "2021"
rust-version = "1.71.1"
rust-version = "1.81.0"
repository = "https://github.com/not-fl3/nanoserde"

[features]
Expand All @@ -20,4 +20,4 @@ toml = []
std = []

[dependencies]
nanoserde-derive = { path = "derive", version = "=0.2.0-beta.2", optional = true }
nanoserde-derive = { path = "derive", version = "=0.2.0", optional = true }
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ No more syn, proc_macro2 or quote in the build tree!

```
> cargo tree
nanoserde v0.1.0 (/../nanoserde)
└── nanoserde-derive v0.1.0 (/../nanoserde/derive)
nanoserde v0.2.0 (/../nanoserde)
└── nanoserde-derive v0.2.0 (/../nanoserde/derive)
```

## Example:
Expand Down
4 changes: 2 additions & 2 deletions derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[package]
name = "nanoserde-derive"
version = "0.2.0-beta.2"
version = "0.2.0"
authors = ["Makepad <[email protected]>", "Fedor <[email protected]>"]
edition = "2021"
rust-version = "1.78.0"
rust-version = "1.81.0"
description = "Fork of makepad-tinyserde derive without any external dependencies"
license = "MIT"

Expand Down
5 changes: 0 additions & 5 deletions src/serde_bin.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
use core::convert::TryInto;

// remove this after 1.81 is live
#[cfg(not(feature = "std"))]
use core::error::Error;
#[cfg(feature = "std")]
use std::error::Error;

use alloc::borrow::ToOwned;
use alloc::boxed::Box;
Expand Down
7 changes: 1 addition & 6 deletions src/serde_json.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
use core::str::Chars;

// remove this after 1.81 is msrv
#[cfg(not(feature = "std"))]
use core::error::Error;
#[cfg(feature = "std")]
use std::error::Error;
use core::str::Chars;

use alloc::boxed::Box;
use alloc::collections::{BTreeMap, BTreeSet, LinkedList};
Expand Down
7 changes: 1 addition & 6 deletions src/serde_ron.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
use core::str::Chars;

// remove this after 1.81 is live
#[cfg(not(feature = "std"))]
use core::error::Error;
#[cfg(feature = "std")]
use std::error::Error;
use core::str::Chars;

use alloc::boxed::Box;
use alloc::collections::{BTreeMap, BTreeSet, LinkedList};
Expand Down
7 changes: 1 addition & 6 deletions src/toml.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
use core::str::Chars;

// remove this after 1.81 is live
#[cfg(not(feature = "std"))]
use core::error::Error;
#[cfg(feature = "std")]
use std::error::Error;
use core::str::Chars;

use alloc::format;
use alloc::string::{String, ToString};
Expand Down

0 comments on commit 6a48d55

Please sign in to comment.