Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make the copper app buildable directly from a CopperContext #135

Open
gbin opened this issue Dec 5, 2024 · 0 comments
Open

make the copper app buildable directly from a CopperContext #135

gbin opened this issue Dec 5, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@gbin
Copy link
Collaborator

gbin commented Dec 5, 2024

Today we have a helper basic_copper_setup that sets up all the runtime for copper:

    let copper_ctx = basic_copper_setup(&PathBuf::from(logger_path), SLAB_SIZE, false, None)
        .expect("Failed to setup copper.");

But the generated application from the ron file gets separately the clock and the logger from that context.

    let mut application =
        PtCloudsApplication::new(copper_ctx.clock.clone(), copper_ctx.unified_logger.clone())
            .expect("Failed to create application.");

Maybe we could officialise this CopperContext and just have the generated application from cu29_derive get a context?

@gbin gbin added enhancement New feature or request good first issue Good for newcomers labels Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant