-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
47 lines (39 loc) · 1.21 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
[package]
name = "typst-lua"
version = "0.1.0"
authors = ["geraldoluiz@puc-rio.br"]
edition = "2021"
# Add this line
[lib]
name = "typst_lua"
crate-type = ["cdylib"]
[dependencies]
typst_compiler = { path = "typst-compiler" }
typst = { git = "https://github.com/typst/typst", package = "typst"}
libc = "0.2"
bstr = { version = "1.7.0", features = ["alloc"] }
mlua51_lua51 = { git = "https://github.com/mlua-rs/mlua", package= "mlua", features = ["lua51", "module"], optional = true }
mlua52_lua52 = { git = "https://github.com/mlua-rs/mlua", package= "mlua", features = ["lua52", "module"], optional = true }
mlua53_lua53 = { git = "https://github.com/mlua-rs/mlua", package= "mlua", features = ["lua53", "module"], optional = true }
mlua54_lua54 = { git = "https://github.com/mlua-rs/mlua", package = "mlua", features = ["lua54", "module"], optional = true }
[features]
lua51 = ["mlua51_lua51"]
lua52 = ["mlua52_lua52"]
lua53 = ["mlua53_lua53"]
lua54 = ["mlua54_lua54"]
[profile.release]
opt-level = 3
incremental = true
lto = true
# strip = true
#panic = 'abort'
[profile.dev]
opt-level = 0
debug = true
rpath = false
lto = false
debug-assertions = true
codegen-units = 16
panic = 'unwind'
incremental = true
build-std = []