-
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2072 from sile-typesetter/cargo-workspace-inplace
Setup Lua module for exporting Rust functions to Lua
- Loading branch information
Showing
16 changed files
with
337 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,6 +51,7 @@ rules: | |
- readme | ||
- release | ||
- rusile | ||
- settings | ||
- shapers | ||
- tooling | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,39 @@ | ||
[package] | ||
name = "sile" | ||
[workspace] | ||
resolver = "2" | ||
members = [ | ||
".", | ||
"rusile", | ||
] | ||
|
||
[workspace.package] | ||
version = "0.15.5" | ||
edition = "2021" | ||
rust-version = "1.71.0" | ||
description = "Simon’s Improved Layout Engine" | ||
authors = [ | ||
"Simon Cozens", | ||
"Caleb Maclennan <[email protected]>", | ||
"Olivier Nicole", | ||
"Didier Willis" | ||
] | ||
readme = "README.md" | ||
homepage = "https://sile-typesetter.org" | ||
repository = "https://github.com/sile-typesetter/sile" | ||
license = "MIT" | ||
|
||
[package] | ||
name = "sile" | ||
description = "Simon’s Improved Layout Engine" | ||
readme = "README.md" | ||
build = "build-aux/build.rs" | ||
version.workspace = true | ||
edition.workspace = true | ||
rust-version.workspace = true | ||
authors.workspace = true | ||
homepage.workspace = true | ||
repository.workspace = true | ||
license.workspace = true | ||
|
||
[package.metadata.bacon.jobs] | ||
cmd = [ "cargo", "build", "--color", "always" ] | ||
|
||
[package.metadata.typos.default] | ||
locale = "en-us" | ||
|
@@ -91,6 +110,10 @@ zsh = [ "completions" ] | |
[profile.release] | ||
lto = true | ||
|
||
[workspace.dependencies.mlua] | ||
version = "0.10.0" | ||
features = [ "anyhow" ] | ||
|
||
[dependencies.anyhow] | ||
version = "1.0" | ||
|
||
|
@@ -100,7 +123,7 @@ optional = true | |
features = [ "derive", "string", "wrap_help" ] | ||
|
||
[dependencies.mlua] | ||
version = "0.9" | ||
workspace = true | ||
features = [ "macros" ] | ||
|
||
[dependencies.rust-embed] | ||
|
@@ -112,6 +135,9 @@ features = [ "include-exclude" ] | |
version = "0.5" | ||
optional = true | ||
|
||
[dependencies.semver] | ||
version = "1.0" | ||
|
||
[build-dependencies.clap_complete] | ||
version = "4.4" | ||
optional = true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[package] | ||
name = "rusile" | ||
description = "Rusty components for the SILE typesetter" | ||
readme = "README.md" | ||
version.workspace = true | ||
edition.workspace = true | ||
rust-version.workspace = true | ||
authors.workspace = true | ||
homepage.workspace = true | ||
repository.workspace = true | ||
license.workspace = true | ||
|
||
[lib] | ||
crate-type = ["rlib", "cdylib", "staticlib"] | ||
|
||
[dependencies.sile] | ||
path = ".." | ||
|
||
[features] | ||
default = [] | ||
lua54 = [ "mlua/lua54" ] | ||
lua53 = [ "mlua/lua53" ] | ||
lua52 = [ "mlua/lua52" ] | ||
lua51 = [ "mlua/lua51" ] | ||
luajit = [ "mlua/luajit" ] | ||
vendored = [ "mlua/vendored" ] | ||
|
||
[dependencies.mlua] | ||
workspace = true | ||
features = [ "macros", "module" ] |
Oops, something went wrong.