Skip to content
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Added by cargo
/target
Cargo.lock


# MacOS specific files
Expand Down
96 changes: 0 additions & 96 deletions Cargo.lock

This file was deleted.

5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ keywords = ["ini", "parser", "serde", "config", "serialization"]
categories = ["config", "parser-implementations", "encoding"]

[dependencies]
serde = { version = "^1.0", features = ["derive"] }
serde_core = "^1.0"
thiserror = "^2.0"

[dev-dependencies]
serde = { version = "^1.0", features = ["derive"] }
4 changes: 2 additions & 2 deletions src/de.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::{Error, error::Result};
use serde::{
use serde_core::{
Deserialize,
de::{self, IntoDeserializer},
};
Expand Down Expand Up @@ -514,7 +514,7 @@ impl<'de, 'a> de::Deserializer<'de> for &'a mut SectionDeserializer<'a> {
}

// Forward all other deserialize methods to deserialize_any
serde::forward_to_deserialize_any! {
serde_core::forward_to_deserialize_any! {
bool i8 i16 i32 i64 u8 u16 u32 u64 f32 f64 char str string
bytes byte_buf unit unit_struct newtype_struct seq tuple
tuple_struct map enum identifier ignored_any
Expand Down
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use serde::{de, ser};
use serde_core::{de, ser};
use std::fmt;
use thiserror::Error;

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ mod tests {

assert_eq!(config.name, "My App");
assert_eq!(config.port, 8080);
assert_eq!(config.enabled, true);
assert!(config.enabled);
assert_eq!(config.description, Some("A test application".to_string()));
assert_eq!(config.database.host, "localhost");
assert_eq!(config.database.port, 5432);
Expand Down
2 changes: 1 addition & 1 deletion src/ser.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::{Error, error::Result};
use serde::{Serialize, ser};
use serde_core::{Serialize, ser};

pub struct Serializer {
output: String,
Expand Down