diff --git a/Cargo.toml b/Cargo.toml index fa970e3..6c76ecf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,55 +18,3 @@ default-members = [ "members/pt-math", ] -[package] -publish = false -autobins = true -default-run = "pt" -name = "libpt" -version = "0.1.6" -edition = "2021" -authors = ["Christoph J. Scherr "] -license = "GPL-3.0-or-later" -description = "Personal multitool" -readme = "README.md" -homepage = "https://git.cscherr.de/PlexSheep/pt" -repository = "https://git.cscherr.de/PlexSheep/pt" -keywords = ["cli", "python", "scriptable", "pyo3", "library"] -categories = ["command-line-utilities", "development-tools", "development-tools::ffi"] - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[lib] -name = "pt" -crate-type = ["cdylib", "rlib"] - -[[bin]] -name = "pt" -path = "src/bin/main/mod.rs" - -[[bin]] -name = "ccc" -path = "src/bin/ccc/mod.rs" - -[dependencies] -clap = { version = "4.3.11", features = ["derive"] } -clap-num = "1.0.2" -clap-verbosity-flag = "2.0.1" -env_logger = "0.10.0" -humantime = "2.1.0" -num = "0.4.0" -num-traits = "0.2.16" -openssl = "0.10.55" -openssl-sys = "0.9.90" -pyo3 = "0.18.1" -regex = "1.9.1" -reqwest = { version = "0.11.18", features = ["blocking"] } -serde = { version = "1.0.171", features = ["derive"] } -serde_json = "1.0.102" -signal-hook = "0.3.15" -tracing = "0.1.37" -tracing-appender = "0.2.2" -tracing-subscriber = "0.3.17" - -[dev-dependencies] -gag = "1.0.0" diff --git a/members/pt-core/src/printing.rs b/members/pt-core/src/printing.rs index d7cce6f..c1d5bf4 100644 --- a/members/pt-core/src/printing.rs +++ b/members/pt-core/src/printing.rs @@ -14,8 +14,6 @@ pub use crate::divider; pub use crate::print_divider; -use pyo3::prelude::*; - //// TYPES ///////////////////////////////////////////////////////////////////////////////////////// //// CONSTANTS ///////////////////////////////////////////////////////////////////////////////////// @@ -47,17 +45,5 @@ macro_rules! print_divider { //// IMPLEMENTATION //////////////////////////////////////////////////////////////////////////////// //// PUBLIC FUNCTIONS ////////////////////////////////////////////////////////////////////////////// -/// python interface for [`divider!`], can also be used with rust -#[pyfunction] -pub fn divider() -> String { - divider!() -} - -//////////////////////////////////////////////////////////////////////////////////////////////////// -/// python interface for [`print_divider!`], can also be used with rust -#[pyfunction] -pub fn print_divider() { - print_divider!() -} //// PRIVATE FUNCTIONS /////////////////////////////////////////////////////////////////////////////