gdextension_api/lib.rs
1//! # Godot 4 GDExtension API, mapped to Rust.
2//!
3//! Used internally by the [godot-rust](https://godot-rust.github.io) project.
4//! We do not offer any guarantees for the provided API.
5
6#![doc(html_logo_url = "https://godotengine.org/assets/press/icon_color.svg")]
7
8use std::borrow::Cow;
9
10/// Returns the contents of `gdextension_interface.json`.
11///
12/// Describes the GDExtension C API. Backwards-compatible with all supported Godot versions.
13pub const fn load_gdextension_interface_json() -> Cow<'static, str> {
14 Cow::Borrowed(include_str!("gdextension_interface.json"))
15}
16
17#[path = "4.2/mod.rs"]
18pub mod version_4_2;
19#[path = "4.3/mod.rs"]
20pub mod version_4_3;
21#[path = "4.4/mod.rs"]
22pub mod version_4_4;
23#[path = "4.5/mod.rs"]
24pub mod version_4_5;
25#[path = "4.6/mod.rs"]
26pub mod version_4_6;