distrib_python/pyproject.rs
1// This is free and unencumbered software released into the public domain.
2
3use alloc::string::String;
4
5pub use pyproject_toml::{Contact, License, Project};
6
7pub type PyprojectToml = pyproject_toml::PyProjectToml;
8
9pub trait PyprojectTomlExt {
10 fn try_to_string(&self) -> Result<String, toml0::ser::Error>;
11}
12
13impl PyprojectTomlExt for PyprojectToml {
14 fn try_to_string(&self) -> Result<String, toml0::ser::Error> {
15 toml0::to_string_pretty(self)
16 }
17}