PyO3 / pyproject-toml-rs

pyproject.toml parser in Rust
MIT License
19 stars 8 forks source link

Add `#[derive(PartialEq, Eq)]` and `Project::new` #8

Closed konstin closed 1 year ago

konstin commented 1 year ago

We have #[derive(Debug, PartialEq, Eq, Serialize, Deserialize, Default)] on our PyProject type that we compare with assert_eq! in the tests, so we also need those derives here.

Also added Project::default_with_name as a way to avoid boilerplate in downstream crates.

konstin commented 1 year ago

Just tried, but unfortunately IndexMap isn't Hash