-
Notifications
You must be signed in to change notification settings - Fork 9
/
Cargo.toml
137 lines (121 loc) · 3.59 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
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
[package]
authors = ["Lenscas <[email protected]>"]
categories = ["development-tools::ffi"]
description = "A crate to enhance the APIs provided by the mlua crates"
edition = "2021"
keywords = ["teal", "lua", "type", "generation", "type-generation"]
license = "MIT OR Apache-2.0"
name = "tealr"
readme = "README.md"
repository = "https://github.com/lenscas/tealr/"
version = "0.10.0"
[workspace]
members = ["tealr_derive"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["derive", "compile", "embed_compiler_from_download"]
compile = ["tealr_derive/compile"]
derive = ["tealr_derive/derive"]
embed_compiler_from_download = ["tealr_derive/embed_compiler_from_download"]
embed_compiler_from_local = ["tealr_derive/embed_compiler_from_local"]
# mlua specific features
mlua_async = ["mlua/async"]
mlua_lua51 = ["mlua/lua51"]
mlua_lua52 = ["mlua/lua52"]
mlua_lua53 = ["mlua/lua53"]
mlua_lua54 = ["mlua/lua54"]
mlua_luajit = ["mlua/luajit"]
mlua_luajit52 = ["mlua/luajit52"]
mlua_luau = ["mlua/luau"]
mlua_macros = ["mlua/macros"]
mlua_module = ["mlua/module"]
mlua_send = ["mlua/send"]
mlua_serialize = ["mlua/serialize"]
mlua_vendored = ["mlua/vendored"]
mlua_error-send = ["mlua/error-send"]
mlua_userdata-wrappers = ["mlua/userdata-wrappers"]
mlua_anyhow = ["mlua/anyhow"]
[dependencies]
bstr = { version = "1.10.0", default-features = false, features = ["std"] }
itertools = "0.13.0"
mlua = { version = "0.10.1", optional = true, default-features = false }
serde = { version = "1.0.136", features = ["derive"] }
serde_json = "1.0.132"
tealr_derive = { version = "0.10.0", optional = true, path = "./tealr_derive" }
#Mlua tests
[[test]]
name = "mlua_embed_teal"
path = "tests/embed_teal.rs"
required-features = ["mlua"]
[[test]]
name = "mlua_inlined_type"
path = "tests/inlined_type.rs"
required-features = ["mlua"]
[[test]]
name = "mlua_generics"
path = "tests/generics.rs"
required-features = ["mlua"]
[[test]]
name = "mlua_type_picker"
path = "tests/type_picker.rs"
required-features = ["mlua"]
[[test]]
name = "mlua_async"
path = "tests/async.rs"
required-features = ["mlua", "mlua_async"]
[[test]]
name = "mlua_function_wrapper"
path = "tests/function_wrapper.rs"
required-features = ["mlua"]
[[test]]
name = "mlua_readme_pieces"
path = "tests/readme_pieces.rs"
required-features = ["mlua"]
[[test]]
name = "mlua_meta_methods"
path = "tests/meta_methods.rs"
required-features = ["mlua"]
[[test]]
name = "mlua_to_from_derived"
path = "tests/to_from_derived.rs"
required-features = ["mlua"]
[[test]]
name = "mlua_export_instances"
path = "tests/export_instances.rs"
required-features = ["mlua"]
[[test]]
name = "mlua_named_parameters"
path = "tests/named_parameters.rs"
required-features = ["mlua"]
#examples using mlua
[[example]]
name = "mlua_compile_inline_teal"
path = "examples/compile_inline_teal.rs"
required-features = ["mlua"]
[[example]]
name = "mlua_derive"
path = "examples/derive.rs"
required-features = ["mlua"]
[[example]]
name = "mlua_embed_teal"
path = "examples/embed_teal.rs"
required-features = ["mlua"]
[[example]]
name = "mlua_manual"
path = "examples/manual.rs"
required-features = ["mlua"]
[[example]]
name = "mlua_manual_documentation"
path = "examples/manual_documentation.rs"
required-features = ["mlua"]
[[example]]
name = "mlua_userdata_proxy"
path = "examples/userdata_proxy.rs"
required-features = ["mlua"]
[[example]]
name = "mlua_named_parameters"
path = "examples/named_parameters.rs"
required-features = ["mlua"]
[package.metadata.docs.rs]
features = ["mlua_lua54", "mlua_vendored", "mlua_async", "mlua_serialize"]
rustdoc-args = ["--cfg", "docsrs"]