Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump msrv and crate versions, remove std::error references #125

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading