Mercurial > crates > nonstick
annotate Cargo.toml @ 175:e30775c80b49
Separate #[cfg(feature = "link")] from other features.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Wed, 30 Jul 2025 14:57:12 -0400 |
parents | e27c5c667a5a |
children | 0730f5f2ee2a |
rev | line source |
---|---|
136
efbc235f01d3
Separate libpam-sys-helpers from libpam-sys.
Paul Fisher <paul@pfish.zone>
parents:
135
diff
changeset
|
1 [workspace] |
efbc235f01d3
Separate libpam-sys-helpers from libpam-sys.
Paul Fisher <paul@pfish.zone>
parents:
135
diff
changeset
|
2 members = ["testharness"] |
efbc235f01d3
Separate libpam-sys-helpers from libpam-sys.
Paul Fisher <paul@pfish.zone>
parents:
135
diff
changeset
|
3 exclude = ["libpam-sys"] |
efbc235f01d3
Separate libpam-sys-helpers from libpam-sys.
Paul Fisher <paul@pfish.zone>
parents:
135
diff
changeset
|
4 |
efbc235f01d3
Separate libpam-sys-helpers from libpam-sys.
Paul Fisher <paul@pfish.zone>
parents:
135
diff
changeset
|
5 [workspace.package] |
efbc235f01d3
Separate libpam-sys-helpers from libpam-sys.
Paul Fisher <paul@pfish.zone>
parents:
135
diff
changeset
|
6 license = "MIT" |
efbc235f01d3
Separate libpam-sys-helpers from libpam-sys.
Paul Fisher <paul@pfish.zone>
parents:
135
diff
changeset
|
7 version = "0.0.8-alpha0" |
efbc235f01d3
Separate libpam-sys-helpers from libpam-sys.
Paul Fisher <paul@pfish.zone>
parents:
135
diff
changeset
|
8 authors = ["Paul Fisher <paul@pfish.zone>"] |
efbc235f01d3
Separate libpam-sys-helpers from libpam-sys.
Paul Fisher <paul@pfish.zone>
parents:
135
diff
changeset
|
9 edition = "2021" |
efbc235f01d3
Separate libpam-sys-helpers from libpam-sys.
Paul Fisher <paul@pfish.zone>
parents:
135
diff
changeset
|
10 rust-version = "1.75.0" |
efbc235f01d3
Separate libpam-sys-helpers from libpam-sys.
Paul Fisher <paul@pfish.zone>
parents:
135
diff
changeset
|
11 |
15
27730595f1ea
Adding pam-http module
Anthony Nowell <anthony@algorithmia.com>
parents:
diff
changeset
|
12 [package] |
45
ce47901aab7a
Rename to “nonstick”, move to root, update docs and license.
Paul Fisher <paul@pfish.zone>
parents:
37
diff
changeset
|
13 name = "nonstick" |
15
27730595f1ea
Adding pam-http module
Anthony Nowell <anthony@algorithmia.com>
parents:
diff
changeset
|
14 description = "PAM bindings for Rust" |
45
ce47901aab7a
Rename to “nonstick”, move to root, update docs and license.
Paul Fisher <paul@pfish.zone>
parents:
37
diff
changeset
|
15 readme = "README.md" |
15
27730595f1ea
Adding pam-http module
Anthony Nowell <anthony@algorithmia.com>
parents:
diff
changeset
|
16 keywords = ["pam", "ffi", "linux", "authentication"] |
136
efbc235f01d3
Separate libpam-sys-helpers from libpam-sys.
Paul Fisher <paul@pfish.zone>
parents:
135
diff
changeset
|
17 license.workspace = true |
efbc235f01d3
Separate libpam-sys-helpers from libpam-sys.
Paul Fisher <paul@pfish.zone>
parents:
135
diff
changeset
|
18 version.workspace = true |
efbc235f01d3
Separate libpam-sys-helpers from libpam-sys.
Paul Fisher <paul@pfish.zone>
parents:
135
diff
changeset
|
19 authors.workspace = true |
efbc235f01d3
Separate libpam-sys-helpers from libpam-sys.
Paul Fisher <paul@pfish.zone>
parents:
135
diff
changeset
|
20 edition.workspace = true |
efbc235f01d3
Separate libpam-sys-helpers from libpam-sys.
Paul Fisher <paul@pfish.zone>
parents:
135
diff
changeset
|
21 rust-version.workspace = true |
15
27730595f1ea
Adding pam-http module
Anthony Nowell <anthony@algorithmia.com>
parents:
diff
changeset
|
22 |
74
c7c596e6388f
Make conversations type-safe (last big reorg) (REAL) (NOT CLICKBAIT)
Paul Fisher <paul@pfish.zone>
parents:
70
diff
changeset
|
23 [features] |
171
e27c5c667a5a
Create full new types for return code and flags, separate end to end.
Paul Fisher <paul@pfish.zone>
parents:
148
diff
changeset
|
24 default = ["link"] |
105 | 25 |
74
c7c596e6388f
Make conversations type-safe (last big reorg) (REAL) (NOT CLICKBAIT)
Paul Fisher <paul@pfish.zone>
parents:
70
diff
changeset
|
26 # Enable this to actually link against your system's PAM library. |
99
8840fa6534f6
Streamline dependencies and rename to openpam-extensions.
Paul Fisher <paul@pfish.zone>
parents:
93
diff
changeset
|
27 # |
8840fa6534f6
Streamline dependencies and rename to openpam-extensions.
Paul Fisher <paul@pfish.zone>
parents:
93
diff
changeset
|
28 # This will fail if you have extensions enabled that are not compatible |
8840fa6534f6
Streamline dependencies and rename to openpam-extensions.
Paul Fisher <paul@pfish.zone>
parents:
93
diff
changeset
|
29 # with your system's PAM. |
171
e27c5c667a5a
Create full new types for return code and flags, separate end to end.
Paul Fisher <paul@pfish.zone>
parents:
148
diff
changeset
|
30 link = ["dep:libpam-sys"] |
105 | 31 |
171
e27c5c667a5a
Create full new types for return code and flags, separate end to end.
Paul Fisher <paul@pfish.zone>
parents:
148
diff
changeset
|
32 # Extensions to PAM that are shared by Linux-PAM and OpenPAM |
e27c5c667a5a
Create full new types for return code and flags, separate end to end.
Paul Fisher <paul@pfish.zone>
parents:
148
diff
changeset
|
33 # (i.e., most PAM installations). |
108
e97534be35e3
Make some proc macros for doing cfg-like stuff for PAM impls.
Paul Fisher <paul@pfish.zone>
parents:
106
diff
changeset
|
34 basic-ext = [] |
171
e27c5c667a5a
Create full new types for return code and flags, separate end to end.
Paul Fisher <paul@pfish.zone>
parents:
148
diff
changeset
|
35 # Extensions to PAM that are supported by Linux-PAM. |
108
e97534be35e3
Make some proc macros for doing cfg-like stuff for PAM impls.
Paul Fisher <paul@pfish.zone>
parents:
106
diff
changeset
|
36 linux-pam-ext = [] |
171
e27c5c667a5a
Create full new types for return code and flags, separate end to end.
Paul Fisher <paul@pfish.zone>
parents:
148
diff
changeset
|
37 # Extensions to PAM that are supported by OpenPAM. |
108
e97534be35e3
Make some proc macros for doing cfg-like stuff for PAM impls.
Paul Fisher <paul@pfish.zone>
parents:
106
diff
changeset
|
38 openpam-ext = [] |
171
e27c5c667a5a
Create full new types for return code and flags, separate end to end.
Paul Fisher <paul@pfish.zone>
parents:
148
diff
changeset
|
39 # Extensions to PAM that are supported by Sun's PAM. |
130
80c07e5ab22f
Transfer over (almost) completely to using libpam-sys.
Paul Fisher <paul@pfish.zone>
parents:
110
diff
changeset
|
40 sun-ext = [] |
74
c7c596e6388f
Make conversations type-safe (last big reorg) (REAL) (NOT CLICKBAIT)
Paul Fisher <paul@pfish.zone>
parents:
70
diff
changeset
|
41 |
105 | 42 # This feature exists only for testing. |
43 test-install = [] | |
44 | |
15
27730595f1ea
Adding pam-http module
Anthony Nowell <anthony@algorithmia.com>
parents:
diff
changeset
|
45 [dependencies] |
56
daa2cde64601
Big big refactor. Probably should have been multiple changes.
Paul Fisher <paul@pfish.zone>
parents:
55
diff
changeset
|
46 bitflags = "2.9.0" |
131
a632a8874131
Get all the Linux-PAM functions into libpam-sys, and get tests right.
Paul Fisher <paul@pfish.zone>
parents:
130
diff
changeset
|
47 libc = "0.2" |
80
5aa1a010f1e8
Start using PAM headers; improve owned/borrowed distinction.
Paul Fisher <paul@pfish.zone>
parents:
77
diff
changeset
|
48 num_enum = "0.7.3" |
136
efbc235f01d3
Separate libpam-sys-helpers from libpam-sys.
Paul Fisher <paul@pfish.zone>
parents:
135
diff
changeset
|
49 libpam-sys = { optional = true, path = "libpam-sys" } |
efbc235f01d3
Separate libpam-sys-helpers from libpam-sys.
Paul Fisher <paul@pfish.zone>
parents:
135
diff
changeset
|
50 libpam-sys-helpers = { path = "libpam-sys/libpam-sys-helpers" } |
175
e30775c80b49
Separate #[cfg(feature = "link")] from other features.
Paul Fisher <paul@pfish.zone>
parents:
171
diff
changeset
|
51 libpam-sys-consts = { path = "libpam-sys/libpam-sys-consts" } |
99
8840fa6534f6
Streamline dependencies and rename to openpam-extensions.
Paul Fisher <paul@pfish.zone>
parents:
93
diff
changeset
|
52 |
80
5aa1a010f1e8
Start using PAM headers; improve owned/borrowed distinction.
Paul Fisher <paul@pfish.zone>
parents:
77
diff
changeset
|
53 [build-dependencies] |
148
4b3a5095f68c
Move libpam-sys helpers into their own library.
Paul Fisher <paul@pfish.zone>
parents:
136
diff
changeset
|
54 libpam-sys-consts = { path = "libpam-sys/libpam-sys-consts" } |