Skip to content

Commit

Permalink
chore(build): Add Crate meta-data and move features above dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Oct 11, 2023
1 parent d2ad044 commit 28ab320
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,36 @@ authors = [
"Olivier Nicole",
"Didier Willis"
]
readme = "README.md"
homepage = "https://sile-typesetter.org"
repository = "https://github.com/sile-typesetter/sile"
license = "MIT"
build = "build-aux/build.rs"

[[bin]]
name = "sile"
required-features = [ "cli" ]

[features]
default = [ "cli", "bash", "elvish", "fish", "manpage", "powershell", "zsh" ]
lua54 = [ "mlua/lua54" ]
lua53 = [ "mlua/lua53" ]
lua52 = [ "mlua/lua52" ]
lua51 = [ "mlua/lua51" ]
luajit = [ "mlua/luajit" ]
vendored = [ "mlua/vendored" ]
completions = [ "cli", "clap_complete" ]
cli = [ "clap" ]
bash = [ "completions" ]
elvish = [ "completions" ]
fish = [ "completions" ]
manpage = [ "clap_mangen" ]
powershell = [ "completions" ]
zsh = [ "completions" ]

[profile.release]
lto = true

[dependencies]

[dependencies.anyhow]
Expand Down Expand Up @@ -51,23 +73,3 @@ required-features = [ "cli" ]
version = "8.2"
default-features = false
features = [ "build", "cargo", "git", "gitoxide" ]

[features]
default = [ "cli", "bash", "elvish", "fish", "manpage", "powershell", "zsh" ]
lua54 = [ "mlua/lua54" ]
lua53 = [ "mlua/lua53" ]
lua52 = [ "mlua/lua52" ]
lua51 = [ "mlua/lua51" ]
luajit = [ "mlua/luajit" ]
vendored = [ "mlua/vendored" ]
completions = [ "cli", "clap_complete" ]
cli = [ "clap" ]
bash = [ "completions" ]
elvish = [ "completions" ]
fish = [ "completions" ]
manpage = [ "clap_mangen" ]
powershell = [ "completions" ]
zsh = [ "completions" ]

[profile.release]
lto = true

0 comments on commit 28ab320

Please sign in to comment.