diff libpam-sys/Cargo.toml @ 136:efbc235f01d3 default tip

Separate libpam-sys-helpers from libpam-sys. This separates the parts of libpam-sys that don't need linking against libpam from the parts that do need to link against libpam.
author Paul Fisher <paul@pfish.zone>
date Thu, 03 Jul 2025 14:28:04 -0400
parents b52594841480
children
line wrap: on
line diff
--- a/libpam-sys/Cargo.toml	Thu Jul 03 11:14:49 2025 -0400
+++ b/libpam-sys/Cargo.toml	Thu Jul 03 14:28:04 2025 -0400
@@ -1,6 +1,6 @@
 [workspace]
 resolver = "2"
-members = ["libpam-sys-test"]
+members = ["libpam-sys-helpers", "libpam-sys-test"]
 
 [workspace.package]
 version = "0.1.0"
@@ -8,6 +8,7 @@
 repository = "https://hg.pfish.zone/crates/nonstick/"
 edition = "2021"
 rust-version = "1.75.0"
+license = "MIT"
 
 [package]
 name = "libpam-sys"
@@ -18,14 +19,13 @@
 repository.workspace = true
 edition.workspace = true
 rust-version.workspace = true
-
-[features]
-default = ["helpers"]
-helpers = []
+license.workspace = true
 
 [dependencies]
+libpam-sys-helpers = { path = "libpam-sys-helpers" }
 libc = "0.2"
 num_enum = "0.7.4"
 
 [build-dependencies]
-libc = "0.2"
\ No newline at end of file
+libc = "0.2"
+libpam-sys-helpers = { path = "libpam-sys-helpers" }