Skip to content

Commit 0cc4b15

Browse files
committed
Generate doc for lua_module macro using doc cfg instead of docsrs
1 parent f16aca6 commit 0cc4b15

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ luau = ["ffi/luau"]
3636
luau-jit = ["luau", "ffi/luau-codegen"]
3737
luau-vector4 = ["luau", "ffi/luau-vector4"]
3838
vendored = ["ffi/vendored"]
39-
module = ["dep:mlua_derive", "ffi/module"]
39+
module = ["mlua_derive", "ffi/module"]
4040
async = ["dep:futures-util"]
4141
send = ["parking_lot/send_guard", "error-send"]
4242
error-send = []

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ pub use mlua_derive::FromLua;
254254
/// ...
255255
/// }
256256
/// ```
257-
#[cfg(any(feature = "module", docsrs))]
257+
#[cfg(all(feature = "mlua_derive", any(feature = "module", doc)))]
258258
#[cfg_attr(docsrs, doc(cfg(feature = "module")))]
259259
pub use mlua_derive::lua_module;
260260

0 commit comments

Comments
 (0)