1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//! Typed navigation primitives (Rust-driven, Flutter-native).
//!
//! This module is only available when the `navigation-binding` feature is enabled.
//!
//! # Design goals
//!
//! - Keep navigation logic separate from reducers and effects.
//! - Make routes type-safe in Rust while still interoperating with Flutter navigation.
//! - Provide a stable, minimal data model for bridging to Dart (via JSON payloads).
//!
//! # Usage
//!
//! Route types are typically defined in an application crate and registered via the
//! `#[routes]` macro from `oxide_generator_rs`. The generated `RouteKind` and
//! `RoutePayload` are then used by the navigation runtime to send commands to Dart
//! and to receive current-route updates.
//!
//! ```rust
//! use oxide_core::navigation::{NoExtra, NoReturn, Route};
//! use serde::{Deserialize, Serialize};
//!
//! #[derive(Clone, Serialize, Deserialize)]
//! pub struct SplashRoute;
//!
//! impl Route for SplashRoute {
//! type Return = NoReturn;
//! type Extra = NoExtra;
//! }
//! ```
pub use DefaultExtra;
pub use DefaultReturn;
pub use NavCommand;
pub use NavRoute;
pub use NoExtra;
pub use NoReturn;
pub use ;
pub use Route;
pub use RouteContext;
pub use RouteExtra;
pub use RouteReturn;