-
Notifications
You must be signed in to change notification settings - Fork 557
/
Copy pathCargo.toml
75 lines (71 loc) · 1.92 KB
/
Cargo.toml
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
[package]
name = "msquic"
version = "2.5.0-beta"
edition = "2021"
authors = ["Microsoft"]
description = "Microsoft implementation of the IETF QUIC protocol"
readme = "README.md"
repository = "https://github.com/microsoft/msquic/"
license = "MIT"
categories = ["network-programming", "asynchronous"]
keywords = ["quic", "network", "secure"]
build = "scripts/build.rs"
include = [
"*/*.md",
"/*.toml",
"/cmake",
"/CMakeLists.txt",
"/LICENSE",
"/submodules/CMakeLists.txt",
"/submodules/openssl/*.*",
"/submodules/openssl/apps",
"/submodules/openssl/CHANGES",
"/submodules/openssl/config",
"/submodules/openssl/Configure",
"/submodules/openssl/Configurations",
"/submodules/openssl/crypto",
"/submodules/openssl/engines",
"/submodules/openssl/external",
"/submodules/openssl/include",
"/submodules/openssl/ms",
"/submodules/openssl/os-dep",
"/submodules/openssl/ssl",
"/submodules/openssl/util",
"/submodules/openssl/VMS",
"/submodules/xdp-for-windows/published/external",
"/scripts/build.rs",
"/src/**/*.rs",
"/src/bin",
"/src/core",
"/src/inc",
"/src/generated",
"/src/manifest",
"/src/platform",
"/THIRD-PARTY-NOTICES",
]
[lib]
path = "src/rs/lib.rs"
[features]
default = ["src"]
# Build c code from source
src = [ "dep:cmake" ]
# Find prebuilt msquic. Use vcpkg installed location on Windows,
# while use system installed location on linux.
# MacOs is not supported.
find = []
# Windows uses schannel, and linux uses openssl by default.
# This feature enables openssl on windows, and has no effect on linux.
openssl = []
static = []
preview-api = []
# Overwrite generated binding by reruning the bindgen
overwrite = [ "dep:bindgen" ]
[build-dependencies]
cmake = { version = "0.1", optional = true }
bindgen = { version = "0.71", optional = true }
[dependencies]
bitflags = "2.9"
libc = "0.2"
c-types = "4.0"
ctor = "0.4"
socket2 = "0.5"