feat: enable docs building

This commit is contained in:
dusk 2024-08-29 17:44:40 +03:00
parent 0f67d318df
commit 514e80c1a0
Signed by: dusk
SSH Key Fingerprint: SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw
3 changed files with 18 additions and 2 deletions

16
rust/Cargo.lock generated
View File

@ -164,6 +164,7 @@ version = "0.1.3"
source = "git+https://github.com/godot-rust/gdext?branch=master#7634fe769d1fcb66209586f0b6c06aac40978253" source = "git+https://github.com/godot-rust/gdext?branch=master#7634fe769d1fcb66209586f0b6c06aac40978253"
dependencies = [ dependencies = [
"godot-bindings", "godot-bindings",
"markdown",
"proc-macro2", "proc-macro2",
"quote", "quote",
"venial", "venial",
@ -197,6 +198,15 @@ version = "0.2.158"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d8adc4bb1803a324070e64a98ae98f38934d91957a99cfb3a43dcbc01bc56439" checksum = "d8adc4bb1803a324070e64a98ae98f38934d91957a99cfb3a43dcbc01bc56439"
[[package]]
name = "markdown"
version = "1.0.0-alpha.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "911a8325e6fb87b89890cd4529a2ab34c2669c026279e61c26b7140a3d821ccb"
dependencies = [
"unicode-id",
]
[[package]] [[package]]
name = "memchr" name = "memchr"
version = "2.7.4" version = "2.7.4"
@ -308,6 +318,12 @@ dependencies = [
"unicode-ident", "unicode-ident",
] ]
[[package]]
name = "unicode-id"
version = "0.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b1b6def86329695390197b82c1e244a54a131ceb66c996f2088a3876e2ae083f"
[[package]] [[package]]
name = "unicode-ident" name = "unicode-ident"
version = "1.0.12" version = "1.0.12"

View File

@ -10,7 +10,7 @@ crate-type = ["cdylib"]
stats = [] stats = []
[dependencies] [dependencies]
godot = { git = "https://github.com/godot-rust/gdext", branch = "master", features = ["api-4-3", "experimental-threads"] } godot = { git = "https://github.com/godot-rust/gdext", branch = "master", features = ["api-4-3", "experimental-threads", "register-docs"] }
glam = { version = "0.28", features = ["fast-math"] } glam = { version = "0.28", features = ["fast-math"] }
rayon = { version = "1.10" } rayon = { version = "1.10" }
rustc-hash = "2" rustc-hash = "2"

View File

@ -74,7 +74,7 @@ unsafe impl ExtensionLibrary for BoidsExtension {
#[derive(GodotClass)] #[derive(GodotClass)]
#[class(init, base=Node)] #[class(init, base=Node)]
/// Node that will make calls automatically to process 2D/3D boids, providing some configuration options. /// Node that will make calls automatically to process 2D/3D boids, providing some configuration options.
/// It's best to use this as an autoload singleton. /// It's best to use this as an autoload singleton. The plugin will register an autoload by default so you don't have to set this up yourself.
pub struct BoidsProcess { pub struct BoidsProcess {
#[export] #[export]
#[init(val = true)] #[init(val = true)]