-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathCargo.toml
More file actions
149 lines (136 loc) · 3.71 KB
/
Copy pathCargo.toml
File metadata and controls
149 lines (136 loc) · 3.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
[package]
name = "interprocess"
version = "2.4.2"
edition = "2021"
rust-version = "1.75"
authors = ["Goat"]
categories = ["os", "os::unix-apis", "os::windows-apis", "asynchronous"]
description = "Interprocess communication toolkit"
keywords = ["ipc", "pipe"]
license = "0BSD OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/kotauskas/interprocess"
autotests = false
autoexamples = false
exclude = [
"/.github/",
"/.gitignore",
"/.editorconfig",
"/Cargo.lock",
]
[features]
default = []
async = ["futures-core"]
tokio = ["dep:tokio", "async"]
doc_cfg = []
[dependencies]
doctest-file = "1.0.0"
tokio = { version = "1.36.0", features = [
"sync",
"rt",
"net",
"time",
"io-util",
"macros",
], optional = true }
futures-core = { version = "0.3.28", optional = true }
[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.61.0", features = [
"Win32_Foundation",
"Win32_Security",
"Win32_Security_Authorization",
"Win32_Storage_FileSystem",
"Win32_System_IO",
"Win32_System_Pipes",
"Win32_System_Threading",
"Win32_System_Memory",
"Win32_System_SystemServices",
"Win32_System_LibraryLoader",
] }
tokio = { version = "1.36.0", features = [
"sync",
"rt",
"fs",
"time",
"io-util",
], optional = true }
recvmsg = "1.0.0"
widestring = "1.0.2"
[target.'cfg(unix)'.dependencies]
libc = { version = "0.2.137", features = ["extra_traits"] }
[dev-dependencies]
tokio = { version = "1.36.0", features = [
"sync",
"rt-multi-thread",
"fs",
"net",
"time",
"io-util",
"macros",
] }
color-eyre = "0.6.2"
[lints.rust]
unsafe_op_in_unsafe_fn = "forbid"
rust_2018_idioms = { level = "deny", priority = -1 }
dead_code = "allow"
[lints.clippy]
ptr_as_ptr = "forbid" # use .cast()
cast_precision_loss = "deny" # we don't use floats
exit = "deny" # we're a library
fn_to_numeric_cast_any = "deny" # we have no use for this
get_unwrap = "deny"
cast_possible_truncation = "warn"
cast_possible_wrap = "warn"
cast_sign_loss = "warn"
dbg_macro = "warn"
cast_lossless = "allow" # very important for portability
option_map_unit_fn = "allow" # more concise
unnecessary_cast = "allow" # also important for portability
[package.metadata.docs.rs]
features = ["doc_cfg", "tokio"]
targets = [
"x86_64-unknown-linux-gnu",
"x86_64-pc-windows-msvc",
"aarch64-apple-darwin",
"x86_64-unknown-freebsd",
]
[[bin]]
name = "inspect-platform"
path = "inspect-platform/main.rs"
test = false
[[example]]
name = "unnamed_pipe_sync"
path = "examples/unnamed_pipe/sync/main.rs"
[[example]]
name = "unnamed_pipe_tokio"
path = "examples/unnamed_pipe/tokio/main.rs"
[[example]]
name = "local_socket_sync_server"
path = "examples/local_socket/sync/listener.rs"
[[example]]
name = "local_socket_sync_client"
path = "examples/local_socket/sync/stream.rs"
[[example]]
name = "local_socket_tokio_server"
path = "examples/local_socket/tokio/listener.rs"
[[example]]
name = "local_socket_tokio_client"
path = "examples/local_socket/tokio/stream.rs"
[[example]]
name = "named_pipe_sync_server"
path = "examples/named_pipe/sync/listener.rs"
[[example]]
name = "named_pipe_sync_client_bytes"
path = "examples/named_pipe/sync/stream/bytes.rs"
[[example]]
name = "named_pipe_sync_client_msg"
path = "examples/named_pipe/sync/stream/msg.rs"
[[example]]
name = "named_pipe_tokio_server"
path = "examples/named_pipe/tokio/listener.rs"
[[example]]
name = "named_pipe_tokio_client_bytes"
path = "examples/named_pipe/tokio/stream/bytes.rs"
[[example]]
name = "named_pipe_tokio_client_msg"
path = "examples/named_pipe/tokio/stream/msg.rs"