distrib-python 0.0.4

Distrib helps you distribute your software.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// This is free and unencumbered software released into the public domain.

use alloc::string::String;

pub use pyproject_toml::{Contact, License, Project};

pub type PyprojectToml = pyproject_toml::PyProjectToml;

pub trait PyprojectTomlExt {
    fn try_to_string(&self) -> Result<String, toml0::ser::Error>;
}

impl PyprojectTomlExt for PyprojectToml {
    fn try_to_string(&self) -> Result<String, toml0::ser::Error> {
        toml0::to_string_pretty(self)
    }
}