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

Has multiple ways of configuring the engine's components #742

Open
Sharktheone opened this issue Dec 29, 2024 · 0 comments
Open

Has multiple ways of configuring the engine's components #742

Sharktheone opened this issue Dec 29, 2024 · 0 comments

Comments

@Sharktheone
Copy link
Member

We want to have multiple options here. The current system where you create your own struct and implement the Module Config by hand is quite tedious. So there are some ideas

  • let the engine have feature-flags that decide what to use on the default config. Then you can specify what components you are using in the Cargo.toml
  • have a macro that can generate the config for you, but you can still override things
engine_config!(EngineConfiguration, html, taffy, cario, document);


impl HasRequestAgent for EngineConfiguration {
    type RequestAgent = CustomRequestAgent;
}
@Sharktheone Sharktheone moved this to 📝 Todo in Gosub Engine Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📝 Todo
Development

No branches or pull requests

1 participant