Mercurial > crates > nonstick
comparison Cargo.toml @ 136:efbc235f01d3
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 |
comparison
equal
deleted
inserted
replaced
135:b52594841480 | 136:efbc235f01d3 |
---|---|
1 [workspace] | |
2 members = ["testharness"] | |
3 exclude = ["libpam-sys"] | |
4 | |
5 [workspace.package] | |
6 license = "MIT" | |
7 version = "0.0.8-alpha0" | |
8 authors = ["Paul Fisher <paul@pfish.zone>"] | |
9 edition = "2021" | |
10 rust-version = "1.75.0" | |
11 | |
1 [package] | 12 [package] |
2 name = "nonstick" | 13 name = "nonstick" |
3 description = "PAM bindings for Rust" | 14 description = "PAM bindings for Rust" |
4 readme = "README.md" | 15 readme = "README.md" |
5 keywords = ["pam", "ffi", "linux", "authentication"] | 16 keywords = ["pam", "ffi", "linux", "authentication"] |
6 license = "MIT" | 17 license.workspace = true |
7 version = "0.0.8-alpha0" | 18 version.workspace = true |
8 authors = ["Paul Fisher <paul@pfish.zone>"] | 19 authors.workspace = true |
9 edition = "2021" | 20 edition.workspace = true |
10 rust-version = "1.75.0" | 21 rust-version.workspace = true |
11 | 22 |
12 [features] | 23 [features] |
13 default = ["link", "basic-ext"] | 24 default = ["link", "basic-ext"] |
14 | 25 |
15 # Enable this to actually link against your system's PAM library. | 26 # Enable this to actually link against your system's PAM library. |
16 # | 27 # |
17 # This will fail if you have extensions enabled that are not compatible | 28 # This will fail if you have extensions enabled that are not compatible |
18 # with your system's PAM. | 29 # with your system's PAM. |
19 link = [] | 30 link = ["libpam-sys"] |
20 | 31 |
21 basic-ext = [] | 32 basic-ext = [] |
22 linux-pam-ext = [] | 33 linux-pam-ext = [] |
23 openpam-ext = [] | 34 openpam-ext = [] |
24 sun-ext = [] | 35 sun-ext = [] |
29 [dependencies] | 40 [dependencies] |
30 bitflags = "2.9.0" | 41 bitflags = "2.9.0" |
31 libc = "0.2" | 42 libc = "0.2" |
32 memoffset = "0.9.1" | 43 memoffset = "0.9.1" |
33 num_enum = "0.7.3" | 44 num_enum = "0.7.3" |
34 libpam-sys = { path = "libpam-sys" } | 45 libpam-sys = { optional = true, path = "libpam-sys" } |
46 libpam-sys-helpers = { path = "libpam-sys/libpam-sys-helpers" } | |
35 | 47 |
36 [build-dependencies] | 48 [build-dependencies] |
37 libpam-sys = { path = "libpam-sys" } | 49 libpam-sys-helpers = { path = "libpam-sys/libpam-sys-helpers" } |