Skip to content

Refactor module structure: Move ranim-app into ranim#143

Merged
AzurIce merged 3 commits intomainfrom
refactor-modules
Feb 25, 2026
Merged

Refactor module structure: Move ranim-app into ranim#143
AzurIce merged 3 commits intomainfrom
refactor-modules

Conversation

@AzurIce
Copy link
Owner

@AzurIce AzurIce commented Feb 25, 2026

Moved ranim-app things into ranim with feature gated.

Now with render or preview feature, we have render_scene and preview_scene macros exported:

/// Render a scene by name.
///
/// ```rust,ignore
/// render_scene!(fading);
/// render_scene!(ranim_020::code_structure);
/// ```
#[cfg(all(not(target_family = "wasm"), feature = "render"))]
#[macro_export]
macro_rules! render_scene {
    ($($scene:tt)::+) => {
        $crate::cmd::render_scene(&$($scene)::+::scene(), 2)
    };
}

/// Preview a scene by name.
///
/// ```rust,ignore
/// ranim::preview_scene!(fading);
/// ranim::preview_scene!(ranim_020::code_structure);
/// ```
#[macro_export]
macro_rules! preview_scene {
    ($($scene:tt)::+) => {
        $crate::cmd::preview_scene(&$($scene)::+::scene())
    };
}

And related APIs:

  • render_scene, render_scene_output
  • preview_constructor_with_name, preview_scene, preview_scene_with_name

@AzurIce AzurIce merged commit e042454 into main Feb 25, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant