-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathCargo.toml
72 lines (57 loc) · 1.76 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
[package]
name = "pbni-rs"
version = "0.1.14"
authors = ["gaoqiangz <[email protected]>"]
edition = "2018"
keywords = ["pb", "powerbuilder", "pbni", "ffi"]
categories = ["api-bindings"]
description = "PBNI for Rust"
documentation = "https://docs.rs/pbni-rs"
repository = "https://github.com/gaoqiangz/pbni-rs"
license = "BSD-2-Clause"
include = ["/build.rs", "/Cargo.toml", "/LICENSE", "/README.md", "/cpp/**", "/src/**", "/examples/**"]
[package.metadata.docs.rs]
all-features = true
targets = ["i686-pc-windows-msvc"]
[lib]
name = "pbni"
crate-type = ["rlib", "cdylib"]
[workspace]
members = [
".",
"codegen",
"pbrs",
]
[patch.crates-io]
pbni-rs = { path = "." }
pbni-codegen = { path = "codegen" }
[dependencies]
libc = "0.2.80"
widestring = { version = "0.4.3"}
const-utf16 = "0.2.1"
# feature: global_function, nonvisualobject, visualobject
pbni-codegen = { version = "0.1.0", optional = true}
# feature: global_function, nonvisualobject, visualobject
static_init = { version = "1.0.1", optional = true}
# feature: visualobject
winapi = { version = "0.3.9", features = ["windef"], optional = true }
# feature: datetime
chrono = { version = "0.4.19", optional = true }
# feature: decimal
rust_decimal = { version = "1.10.3", optional = true }
# feature: vm
libloading = { version = "0.7.0", optional = true }
[build-dependencies]
cc = "1.0.62"
[features]
default = ["full"]
full = ["global_function","nonvisualobject","visualobject","datetime","decimal"]
global_function = ["static_init","pbni-codegen/global_function"]
nonvisualobject = ["static_init","pbni-codegen/nonvisualobject"]
visualobject = ["static_init","winapi","pbni-codegen/visualobject"]
datetime = ["chrono"]
decimal = ["rust_decimal"]
vm = ["libloading"]
[[example]]
name = "vm"
required-features = ["vm"]