| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
[package] |
| 13 |
edition = "2024" |
| 14 |
name = "fork" |
| 15 |
version = "0.6.0" |
| 16 |
authors = ["Nicolas Embriz <[email protected]>"] |
| 17 |
build = false |
| 18 |
autolib = false |
| 19 |
autobins = false |
| 20 |
autoexamples = false |
| 21 |
autotests = false |
| 22 |
autobenches = false |
| 23 |
description = "Library for creating a new process detached from the controlling terminal (daemon)" |
| 24 |
homepage = "https://docs.rs/fork/latest/fork/" |
| 25 |
documentation = "https://docs.rs/fork/latest/fork/" |
| 26 |
readme = "README.md" |
| 27 |
keywords = [ |
| 28 |
"fork", |
| 29 |
"setsid", |
| 30 |
"daemon", |
| 31 |
"process", |
| 32 |
"daemonize", |
| 33 |
] |
| 34 |
categories = [ |
| 35 |
"os::unix-apis", |
| 36 |
"api-bindings", |
| 37 |
] |
| 38 |
license = "BSD-3-Clause" |
| 39 |
repository = "https://github.com/immortal/fork" |
| 40 |
|
| 41 |
[lib] |
| 42 |
name = "fork" |
| 43 |
path = "src/lib.rs" |
| 44 |
|
| 45 |
[[example]] |
| 46 |
name = "demonstrate_fd_reuse_bug" |
| 47 |
path = "examples/demonstrate_fd_reuse_bug.rs" |
| 48 |
|
| 49 |
[[example]] |
| 50 |
name = "example_daemon" |
| 51 |
path = "examples/example_daemon.rs" |
| 52 |
|
| 53 |
[[example]] |
| 54 |
name = "example_pipe" |
| 55 |
path = "examples/example_pipe.rs" |
| 56 |
|
| 57 |
[[example]] |
| 58 |
name = "example_touch_pid" |
| 59 |
path = "examples/example_touch_pid.rs" |
| 60 |
|
| 61 |
[[example]] |
| 62 |
name = "show_fd_reuse" |
| 63 |
path = "examples/show_fd_reuse.rs" |
| 64 |
|
| 65 |
[[example]] |
| 66 |
name = "supervisor" |
| 67 |
path = "examples/supervisor.rs" |
| 68 |
|
| 69 |
[[example]] |
| 70 |
name = "supervisor_advanced" |
| 71 |
path = "examples/supervisor_advanced.rs" |
| 72 |
|
| 73 |
[[example]] |
| 74 |
name = "visual_fd_demo" |
| 75 |
path = "examples/visual_fd_demo.rs" |
| 76 |
|
| 77 |
[[test]] |
| 78 |
name = "chdir_tests" |
| 79 |
path = "tests/chdir_tests.rs" |
| 80 |
|
| 81 |
[[test]] |
| 82 |
name = "daemon_tests" |
| 83 |
path = "tests/daemon_tests.rs" |
| 84 |
|
| 85 |
[[test]] |
| 86 |
name = "error_handling_tests" |
| 87 |
path = "tests/error_handling_tests.rs" |
| 88 |
|
| 89 |
[[test]] |
| 90 |
name = "fork_tests" |
| 91 |
path = "tests/fork_tests.rs" |
| 92 |
|
| 93 |
[[test]] |
| 94 |
name = "integration_tests" |
| 95 |
path = "tests/integration_tests.rs" |
| 96 |
|
| 97 |
[[test]] |
| 98 |
name = "pid_tests" |
| 99 |
path = "tests/pid_tests.rs" |
| 100 |
|
| 101 |
[[test]] |
| 102 |
name = "status_macro_tests" |
| 103 |
path = "tests/status_macro_tests.rs" |
| 104 |
|
| 105 |
[[test]] |
| 106 |
name = "stdio_redirect_tests" |
| 107 |
path = "tests/stdio_redirect_tests.rs" |
| 108 |
|
| 109 |
[[test]] |
| 110 |
name = "waitpid_tests" |
| 111 |
path = "tests/waitpid_tests.rs" |
| 112 |
|
| 113 |
[dependencies.libc] |
| 114 |
version = "0.2" |
| 115 |
|
| 116 |
[dev-dependencies.os_pipe] |
| 117 |
version = "1.2" |
| 118 |
|
| 119 |
[lints.clippy] |
| 120 |
all = "deny" |
| 121 |
await_holding_lock = "deny" |
| 122 |
complexity = "deny" |
| 123 |
correctness = "deny" |
| 124 |
expect_used = "deny" |
| 125 |
indexing_slicing = "deny" |
| 126 |
large_stack_arrays = "deny" |
| 127 |
needless_borrow = "deny" |
| 128 |
needless_collect = "deny" |
| 129 |
panic = "deny" |
| 130 |
pedantic = "deny" |
| 131 |
perf = "deny" |
| 132 |
suspicious = "deny" |
| 133 |
unwrap_used = "deny" |
| 134 |
|
| 135 |
[lints.clippy.nursery] |
| 136 |
level = "allow" |
| 137 |
priority = -1 |
| 138 |
|
| 139 |
[lints.rust] |
| 140 |
warnings = "deny" |