forked from samcrow/rust-xplm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
78 lines (67 loc) · 1.82 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
76
77
78
# SPDX-FileCopyrightText: 2024 Julia DeMille <[email protected]>
#
# SPDX-License-Identifier: MPL-2.0
[package]
authors = ["Julia DeMille <[email protected]>", "Sam Crow <[email protected]>"]
name = "xplane"
version = "0.1.0-alpha.1"
license = "MPL-2.0"
repository = "https://git.sr.ht/~jdemille/xplane.rs"
keywords = ["X-Plane", "plugin"]
description = "High-level interfaces to the X-Plane plugin SDK"
readme = "README.md"
edition = "2021"
rust-version = "1.76"
categories = ["api-bindings", "game-development"]
[dependencies]
libfmod = { version = "~2.206", optional = true }
num_enum = "~0.7"
snafu = "~0.7"
tailcall = "~0.1"
xplane-sys = { version = ">= 4.0.109, < 4.1.0" }
[dev-dependencies]
mockall = "~0.12"
xplane-sys = { version = ">= 4.0.109, < 4.1.0", features = ["mockall"] }
[features]
XPLM400 = ["XPLM303", "xplane-sys/XPLM400"]
XPLM303 = ["XPLM302", "xplane-sys/XPLM303"]
XPLM302 = ["XPLM301", "xplane-sys/XPLM301"]
XPLM301 = ["XPLM300", "xplane-sys/XPLM301"]
XPLM300 = ["XPLM210", "xplane-sys/XPLM300"]
XPLM210 = ["xplane-sys/XPLM210"]
stub-linux = ["xplane-sys/stub-linux"]
fmod = ["dep:libfmod", "XPLM400", "xplane-sys/fmod"]
[profile.release]
lto = true
[lints.rust]
unsafe_op_in_unsafe_fn = "deny"
missing_docs = "warn"
[lints.clippy]
all = "warn"
pedantic = "warn"
cargo = "warn"
float_cmp_const = "deny"
self_named_module_files = "deny"
semicolon_inside_block = "deny"
todo = "warn"
try_err = "deny"
lossy_float_literal = "deny"
multiple_crate_versions = "allow"
module_name_repetitions = "allow"
[[example]]
name = "minimal"
crate-type = ["cdylib"]
[[example]]
name = "dataref"
crate-type = ["cdylib"]
[[example]]
name = "menus"
crate-type = ["cdylib"]
[package.metadata.docs.rs]
features = ["XPLM400"]
targets = [
"x86_64-unknown-linux-gnu",
"x86_64-apple-darwin",
"aarch64-apple-darwin",
"x86_64-pc-windows-msvc",
]