re-export gmserverplugin with new feature flag

This commit is contained in:
William Venner 2021-10-27 20:46:13 +01:00
parent 7df4513690
commit 2b3de9234c
3 changed files with 48 additions and 2 deletions

43
Cargo.lock generated
View File

@ -110,6 +110,8 @@ dependencies = [
[[package]] [[package]]
name = "gmod" name = "gmod"
version = "8.0.0" version = "8.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "715c1eec3ce86b2871086e9577f6e6a68ea1e58a188422826d50d18f3d15d0e4"
dependencies = [ dependencies = [
"cfg_table", "cfg_table",
"cstr", "cstr",
@ -118,7 +120,26 @@ dependencies = [
"fn_abi", "fn_abi",
"fn_has_this", "fn_has_this",
"fn_type_alias", "fn_type_alias",
"gmod-macros", "gmod-macros 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
"lazy_static",
"libloading",
"null_fn",
"skidscan",
]
[[package]]
name = "gmod"
version = "9.0.0"
dependencies = [
"cfg_table",
"cstr",
"ctor",
"detour",
"fn_abi",
"fn_has_this",
"fn_type_alias",
"gmod-macros 1.0.0",
"gmserverplugin",
"lazy_static", "lazy_static",
"libloading", "libloading",
"null_fn", "null_fn",
@ -134,6 +155,26 @@ dependencies = [
"syn", "syn",
] ]
[[package]]
name = "gmod-macros"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b791745998b09a16260e803bb0cca1a641e9b70e2aae94d7a485d34259b29279"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "gmserverplugin"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "481dc5ce867d0ac9c140b3c900e97ff532436045f3d29c8e5d51e8df3b64b336"
dependencies = [
"gmod 8.0.0",
]
[[package]] [[package]]
name = "kernel32-sys" name = "kernel32-sys"
version = "0.2.2" version = "0.2.2"

View File

@ -1,6 +1,6 @@
[package] [package]
name = "gmod" name = "gmod"
version = "8.0.0" version = "9.0.0"
authors = ["William Venner <william@venner.io>"] authors = ["William Venner <william@venner.io>"]
edition = "2018" edition = "2018"
license = "MIT" license = "MIT"
@ -12,9 +12,11 @@ categories = ["api-bindings", "external-ffi-bindings", "game-development", "deve
[features] [features]
default = ["hax"] default = ["hax"]
hax = ["ctor", "skidscan", "detour", "fn_type_alias", "fn_abi", "cfg_table", "null_fn", "fn_has_this"] hax = ["ctor", "skidscan", "detour", "fn_type_alias", "fn_abi", "cfg_table", "null_fn", "fn_has_this"]
server-plugin = ["gmserverplugin"]
[dependencies] [dependencies]
gmod-macros = { version = "1.0.0", path = "../gmod-macros" } gmod-macros = { version = "1.0.0", path = "../gmod-macros" }
gmserverplugin = { version = "1", optional = true }
libloading = "0" libloading = "0"
cstr = "0" cstr = "0"

View File

@ -20,6 +20,9 @@ mod haxports {
#[cfg(feature = "hax")] #[cfg(feature = "hax")]
pub use haxports::*; pub use haxports::*;
#[cfg(feature = "server-plugin")]
pub use gmserverplugin as serverplugin;
/// Lua interface /// Lua interface
pub mod lua; pub mod lua;