Skip to content

Commit fa50063

Browse files
committed
Generate doc for lua_module macro using doc cfg instead of docsrs
1 parent 3d2574a commit fa50063

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", "dep:libloading"]
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
@@ -247,7 +247,7 @@ pub use mlua_derive::FromLua;
247247
/// ...
248248
/// }
249249
/// ```
250-
#[cfg(any(feature = "module", docsrs))]
250+
#[cfg(all(feature = "mlua_derive", any(feature = "module", doc)))]
251251
#[cfg_attr(docsrs, doc(cfg(feature = "module")))]
252252
pub use mlua_derive::lua_module;
253253

0 commit comments

Comments
 (0)