From 341a64a0f517cd0a72a19ad1b6d967559dc05f54 Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Wed, 20 Sep 2023 18:37:06 +0200 Subject: [PATCH] renaming things back to libpt, its kinda responsible --- Cargo.toml | 12 +++++++++++- members/pt-py/Cargo.toml | 2 +- members/pt-py/src/lib.rs | 2 +- src/lib.rs | 8 ++++++++ 4 files changed, 21 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 819cfd8..63e17d2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,7 +36,7 @@ categories = ["command-line-utilities", "development-tools", "development-tools: pyo3 = "0.19" [package] -name = "pt" +name = "libpt" publish.workspace = true version.workspace = true edition.workspace = true @@ -59,6 +59,16 @@ net = [] ccc = ["math"] hedu = ["bintols"] +[lib] +name = "libpt" +# I chose a bad name for my package and i will have to live with it. +# make issue here to make it possible to name the lib file in cargo +# https://github.com/rust-lang/cargo/issues/1970 +crate-type = [ + "dylib", # .dll, .so, .dynlib + "staticlib" # .lib, .a +] + # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] diff --git a/members/pt-py/Cargo.toml b/members/pt-py/Cargo.toml index 16aac9b..1f9a8dd 100644 --- a/members/pt-py/Cargo.toml +++ b/members/pt-py/Cargo.toml @@ -15,5 +15,5 @@ categories.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -pt = { path = "../../" } +libpt = { path = "../../" } pyo3 = { workspace = true } diff --git a/members/pt-py/src/lib.rs b/members/pt-py/src/lib.rs index 8920135..13baee9 100644 --- a/members/pt-py/src/lib.rs +++ b/members/pt-py/src/lib.rs @@ -1,4 +1,4 @@ -use pt::{ +use libpt::{ log::*, }; diff --git a/src/lib.rs b/src/lib.rs index aae8af3..01184c2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,11 @@ +//! # A library for common needs +//! +//! `pt` aims to implement a number of functionalities that might me useful to develop +//! programs in Rust. It aims to be a collection of generally, possibly useful things. +//! +//! `pt` is a project consisting of multiple smaller crates, all bundled together in this +//! "main crate". Most crates will only show up if you activate their feature. + #[cfg(feature = "core")] pub use pt_core as core; #[cfg(feature = "bintols")]