Skip to content

Commit e759511

Browse files
committed
Dev dependencies are enabling full codegen
1 parent a20bb85 commit e759511

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

godot-core/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ godot-codegen = { path = "../godot-codegen", version = "=0.1.3" }
5353

5454
# Reverse dev dependencies so doctests can use `godot::` prefix.
5555
[dev-dependencies]
56-
godot = { path = "../godot" }
56+
godot = { path = "../godot", default-features = false }
5757
serde_json = { version = "1.0" }
5858

5959
# https://docs.rs/about/metadata

godot-core/src/obj/gd.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -641,12 +641,11 @@ where
641641
///
642642
/// # Example
643643
/// ```no_run
644-
/// # fn some_shape() -> Gd<GltfPhysicsShape> { unimplemented!() }
644+
/// # fn some_node() -> Gd<Node> { unimplemented!() }
645645
/// use godot::prelude::*;
646-
/// use godot::classes::GltfPhysicsShape;
647646
///
648-
/// let mut shape: Gd<GltfPhysicsShape> = some_shape();
649-
/// shape.set_importer_mesh(Gd::null_arg());
647+
/// let mut shape: Gd<Node> = some_node();
648+
/// shape.set_owner(Gd::null_arg());
650649
pub fn null_arg() -> crate::obj::ObjectNullArg<T> {
651650
crate::obj::ObjectNullArg(std::marker::PhantomData)
652651
}

godot-macros/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ godot-bindings = { path = "../godot-bindings", version = "=0.1.3" } # emit_godot
3131

3232
# Reverse dev dependencies so doctests can use `godot::` prefix.
3333
[dev-dependencies]
34-
godot = { path = "../godot" }
34+
godot = { path = "../godot", default-features = false }
3535

3636
# https://docs.rs/about/metadata
3737
[package.metadata.docs.rs]

0 commit comments

Comments
 (0)