diff --git a/Cargo.toml b/Cargo.toml index bc56d45..1b21e64 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,4 +1,5 @@ [workspace] +resolver = "3" members = [ "crates/lb", "crates/luaffi", @@ -8,17 +9,29 @@ members = [ "crates/luajit-sys", ] +[workspace.package] +version = "0.1.0" +edition = "2024" +license = "MIT" +authors = ["luaneko "] +homepage = "https://git.lua.re/luaneko/luby/" +repository = "https://git.lua.re/luaneko/luby/" + +[package] +name = "luby" +version.workspace = true +edition.workspace = true +license.workspace = true +authors.workspace = true +homepage.workspace = true +repository.workspace = true + [profile] dev.panic = "abort" release.panic = "abort" -[package] -name = "luby" -version = "0.1.0" -edition = "2024" - [dependencies] -clap = { version = "4.5.40", features = ["derive"] } +clap = { version = "4.5.40", features = ["derive", "env"] } console-subscriber = "0.4.1" lb = { version = "0.1.0", path = "crates/lb" } luajit = { version = "0.1.0", path = "crates/luajit", features = ["runtime"] } @@ -28,3 +41,6 @@ sysexits = "0.9.0" tokio = { version = "1.45.1", features = ["full", "tracing"] } tracing = "0.1.41" tracing-subscriber = "0.3.19" + +[build-dependencies] +vergen-git2 = { version = "1.0.7", features = ["cargo", "rustc"] } diff --git a/crates/lb/Cargo.toml b/crates/lb/Cargo.toml index 18c4596..77b5bd5 100644 --- a/crates/lb/Cargo.toml +++ b/crates/lb/Cargo.toml @@ -1,7 +1,11 @@ [package] name = "lb" -version = "0.1.0" -edition = "2024" +version.workspace = true +edition.workspace = true +license.workspace = true +authors.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] camino = "1.1.10" diff --git a/crates/luaffi/Cargo.toml b/crates/luaffi/Cargo.toml index 1f61a4b..0ff3308 100644 --- a/crates/luaffi/Cargo.toml +++ b/crates/luaffi/Cargo.toml @@ -1,7 +1,11 @@ [package] name = "luaffi" -version = "0.1.0" -edition = "2024" +version.workspace = true +edition.workspace = true +license.workspace = true +authors.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] bstr = "1.12.0" diff --git a/crates/luaffi_impl/Cargo.toml b/crates/luaffi_impl/Cargo.toml index d9c0041..cb16943 100644 --- a/crates/luaffi_impl/Cargo.toml +++ b/crates/luaffi_impl/Cargo.toml @@ -1,7 +1,11 @@ [package] name = "luaffi_impl" -version = "0.1.0" -edition = "2024" +version.workspace = true +edition.workspace = true +license.workspace = true +authors.workspace = true +homepage.workspace = true +repository.workspace = true [lib] proc-macro = true diff --git a/crates/luaify/Cargo.toml b/crates/luaify/Cargo.toml index 47c88c3..49565a3 100644 --- a/crates/luaify/Cargo.toml +++ b/crates/luaify/Cargo.toml @@ -1,7 +1,11 @@ [package] name = "luaify" -version = "0.1.0" -edition = "2024" +version.workspace = true +edition.workspace = true +license.workspace = true +authors.workspace = true +homepage.workspace = true +repository.workspace = true [lib] proc-macro = true diff --git a/crates/luajit-sys/Cargo.toml b/crates/luajit-sys/Cargo.toml index b3fba2a..4108ac3 100644 --- a/crates/luajit-sys/Cargo.toml +++ b/crates/luajit-sys/Cargo.toml @@ -1,7 +1,11 @@ [package] name = "luajit-sys" -version = "0.1.0" -edition = "2024" +version.workspace = true +edition.workspace = true +license.workspace = true +authors.workspace = true +homepage.workspace = true +repository.workspace = true [lib] path = "lib.rs" diff --git a/crates/luajit/Cargo.toml b/crates/luajit/Cargo.toml index 92894f7..7b00400 100644 --- a/crates/luajit/Cargo.toml +++ b/crates/luajit/Cargo.toml @@ -1,7 +1,11 @@ [package] name = "luajit" -version = "0.1.0" -edition = "2024" +version.workspace = true +edition.workspace = true +license.workspace = true +authors.workspace = true +homepage.workspace = true +repository.workspace = true [features] runtime = ["luajit-sys/runtime"]