Update pyproject-toml to 0.8.0 (#329)

This commit is contained in:
konsti 2023-11-06 14:16:36 +01:00 committed by GitHub
parent c9e0f4986f
commit b79a15b458
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 16 deletions

4
Cargo.lock generated
View file

@ -2487,9 +2487,9 @@ dependencies = [
[[package]]
name = "pyproject-toml"
version = "0.7.0"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "569e259cd132eb8cec5df8b672d187c5260f82ad352156b5da9549d4472e64b0"
checksum = "0774c13ff0b8b7ebb4791c050c497aefcfe3f6a222c0829c7017161ed38391ff"
dependencies = [
"indexmap 2.0.2",
"pep440_rs 0.3.12 (registry+https://github.com/rust-lang/crates.io-index)",

View file

@ -42,7 +42,7 @@ once_cell = { version = "1.18.0" }
petgraph = { version = "0.6.4" }
platform-info = { version = "2.0.2" }
plist = { version = "1.5.0" }
pyproject-toml = { version = "0.7.0" }
pyproject-toml = { version = "0.8.0" }
rand = { version = "0.8.5" }
rayon = { version = "1.8.0" }
reflink-copy = { version = "0.1.10" }

View file

@ -3,8 +3,7 @@ use std::path::Path;
use std::str::FromStr;
use fs_err as fs;
use pyproject_toml::{BuildSystem, Project};
use serde::{Deserialize, Serialize};
use pyproject_toml::PyProjectToml;
use toml_edit::Document;
use pep508_rs::Requirement;
@ -14,17 +13,6 @@ use crate::toml::format_multiline_array;
use crate::verbatim::VerbatimRequirement;
use crate::WorkspaceError;
/// Unlike [`pyproject_toml::PyProjectToml`], in our case `build_system` is also optional
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "kebab-case")]
struct PyProjectToml {
/// Build-related data
build_system: Option<BuildSystem>,
/// Project metadata
project: Option<Project>,
}
#[derive(Debug)]
pub struct Workspace {
/// The parsed `pyproject.toml`.