webots_rs/lib.rs
1#![doc = include_str!("../README.md")]
2//! Additional crate docs:
3//! - [`Webots`] is the primary controller entrypoint.
4//! - [`Simulator`] is a type alias for [`Webots`].
5//! - [`WEBOTS_API_VERSION`] exposes the selected bindings version at compile time.
6
7#![allow(clippy::macro_metavars_in_unsafe)]
8
9#[cfg(feature = "v2025a")]
10pub mod v2025a;
11
12#[cfg(feature = "v2025a")]
13pub use v2025a::*;
14
15/// The active Webots API namespace selected by Cargo features.
16#[cfg(feature = "v2025a")]
17pub const WEBOTS_API_VERSION: &str = v2025a::API_VERSION;
18
19/// Whether this build linked against a real Webots controller runtime.
20#[cfg(webots_runtime_linked)]
21pub const WEBOTS_RUNTIME_LINKED: bool = true;
22
23/// Whether this build linked against a real Webots controller runtime.
24#[cfg(not(webots_runtime_linked))]
25pub const WEBOTS_RUNTIME_LINKED: bool = false;