| 1 |
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO |
| 2 |
# |
| 3 |
# When uploading crates to the registry Cargo will automatically |
| 4 |
# "normalize" Cargo.toml files for maximal compatibility |
| 5 |
# with all versions of Cargo and also rewrite `path` dependencies |
| 6 |
# to registry (e.g., crates.io) dependencies. |
| 7 |
# |
| 8 |
# If you are reading this file be aware that the original Cargo.toml |
| 9 |
# will likely look very different (and much more reasonable). |
| 10 |
# See Cargo.toml.orig for the original contents. |
| 11 |
|
| 12 |
[package] |
| 13 |
edition = "2018" |
| 14 |
rust-version = "1.70" |
| 15 |
name = "procfs" |
| 16 |
version = "0.18.0" |
| 17 |
authors = ["Andrew Chin <[email protected]>"] |
| 18 |
build = "build.rs" |
| 19 |
autolib = false |
| 20 |
autobins = false |
| 21 |
autoexamples = false |
| 22 |
autotests = false |
| 23 |
autobenches = false |
| 24 |
description = "Interface to the linux procfs pseudo-filesystem" |
| 25 |
documentation = "https://docs.rs/procfs/" |
| 26 |
readme = "README.md" |
| 27 |
keywords = [ |
| 28 |
"procfs", |
| 29 |
"proc", |
| 30 |
"linux", |
| 31 |
"process", |
| 32 |
] |
| 33 |
categories = [ |
| 34 |
"os::unix-apis", |
| 35 |
"filesystem", |
| 36 |
] |
| 37 |
license = "MIT OR Apache-2.0" |
| 38 |
repository = "https://github.com/eminence/procfs" |
| 39 |
|
| 40 |
[package.metadata.docs.rs] |
| 41 |
all-features = true |
| 42 |
rustdoc-args = ["--generate-link-to-definition"] |
| 43 |
|
| 44 |
[features] |
| 45 |
backtrace = [ |
| 46 |
"dep:backtrace", |
| 47 |
"procfs-core/backtrace", |
| 48 |
] |
| 49 |
default = [ |
| 50 |
"chrono", |
| 51 |
"flate2", |
| 52 |
"procfs-core/default", |
| 53 |
] |
| 54 |
serde1 = [ |
| 55 |
"serde", |
| 56 |
"procfs-core/serde1", |
| 57 |
] |
| 58 |
|
| 59 |
[lib] |
| 60 |
name = "procfs" |
| 61 |
path = "src/lib.rs" |
| 62 |
|
| 63 |
[[example]] |
| 64 |
name = "crypto" |
| 65 |
path = "examples/crypto.rs" |
| 66 |
|
| 67 |
[[example]] |
| 68 |
name = "diskstat" |
| 69 |
path = "examples/diskstat.rs" |
| 70 |
|
| 71 |
[[example]] |
| 72 |
name = "dump" |
| 73 |
path = "examples/dump.rs" |
| 74 |
|
| 75 |
[[example]] |
| 76 |
name = "interface_stats" |
| 77 |
path = "examples/interface_stats.rs" |
| 78 |
|
| 79 |
[[example]] |
| 80 |
name = "iomem" |
| 81 |
path = "examples/iomem.rs" |
| 82 |
|
| 83 |
[[example]] |
| 84 |
name = "kpagecount" |
| 85 |
path = "examples/kpagecount.rs" |
| 86 |
|
| 87 |
[[example]] |
| 88 |
name = "lslocks" |
| 89 |
path = "examples/lslocks.rs" |
| 90 |
|
| 91 |
[[example]] |
| 92 |
name = "lsmod" |
| 93 |
path = "examples/lsmod.rs" |
| 94 |
|
| 95 |
[[example]] |
| 96 |
name = "mountinfo" |
| 97 |
path = "examples/mountinfo.rs" |
| 98 |
|
| 99 |
[[example]] |
| 100 |
name = "mounts" |
| 101 |
path = "examples/mounts.rs" |
| 102 |
|
| 103 |
[[example]] |
| 104 |
name = "netstat" |
| 105 |
path = "examples/netstat.rs" |
| 106 |
|
| 107 |
[[example]] |
| 108 |
name = "partitions" |
| 109 |
path = "examples/partitions.rs" |
| 110 |
|
| 111 |
[[example]] |
| 112 |
name = "pfn" |
| 113 |
path = "examples/pfn.rs" |
| 114 |
|
| 115 |
[[example]] |
| 116 |
name = "pressure" |
| 117 |
path = "examples/pressure.rs" |
| 118 |
|
| 119 |
[[example]] |
| 120 |
name = "process_hierarchy" |
| 121 |
path = "examples/process_hierarchy.rs" |
| 122 |
|
| 123 |
[[example]] |
| 124 |
name = "process_kpageflags" |
| 125 |
path = "examples/process_kpageflags.rs" |
| 126 |
|
| 127 |
[[example]] |
| 128 |
name = "ps" |
| 129 |
path = "examples/ps.rs" |
| 130 |
|
| 131 |
[[example]] |
| 132 |
name = "self_memory" |
| 133 |
path = "examples/self_memory.rs" |
| 134 |
|
| 135 |
[[example]] |
| 136 |
name = "shm" |
| 137 |
path = "examples/shm.rs" |
| 138 |
|
| 139 |
[[bench]] |
| 140 |
name = "cpuinfo" |
| 141 |
path = "benches/cpuinfo.rs" |
| 142 |
harness = false |
| 143 |
|
| 144 |
[dependencies.backtrace] |
| 145 |
version = "0.3" |
| 146 |
optional = true |
| 147 |
|
| 148 |
[dependencies.bitflags] |
| 149 |
version = "2.0" |
| 150 |
default-features = false |
| 151 |
|
| 152 |
[dependencies.chrono] |
| 153 |
version = "0.4.20" |
| 154 |
features = ["clock"] |
| 155 |
optional = true |
| 156 |
default-features = false |
| 157 |
|
| 158 |
[dependencies.flate2] |
| 159 |
version = "1.0.3" |
| 160 |
optional = true |
| 161 |
|
| 162 |
[dependencies.procfs-core] |
| 163 |
version = "0.18.0" |
| 164 |
default-features = false |
| 165 |
|
| 166 |
[dependencies.rustix] |
| 167 |
version = "1.0.1" |
| 168 |
features = [ |
| 169 |
"fs", |
| 170 |
"process", |
| 171 |
"param", |
| 172 |
"system", |
| 173 |
"thread", |
| 174 |
] |
| 175 |
|
| 176 |
[dependencies.serde] |
| 177 |
version = "1.0" |
| 178 |
features = ["derive"] |
| 179 |
optional = true |
| 180 |
|
| 181 |
[dev-dependencies.criterion] |
| 182 |
version = "0.5" |
| 183 |
|
| 184 |
[dev-dependencies.failure] |
| 185 |
version = "0.1" |
| 186 |
|
| 187 |
[dev-dependencies.libc] |
| 188 |
version = "0.2.139" |
| 189 |
|
| 190 |
[dev-dependencies.procinfo] |
| 191 |
version = "0.4.2" |