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

Add feature to disable web renderer #335

Merged
merged 7 commits into from
Jan 5, 2024
Merged

Conversation

noituri
Copy link
Member

@noituri noituri commented Jan 3, 2024

Added web_view feature which is enabled by default
I don't know if packaging on linux works though.

Closes #153

Copy link
Member

@wkozyra95 wkozyra95 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does not have to be a part of this PR, but package_for release should build both binaries

Cargo.toml Outdated Show resolved Hide resolved
@@ -57,3 +57,13 @@ rand = "0.8.5"

[dev-dependencies]
reqwest = { workspace = true }

[[bin]]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this is needed? web_view is supposed to be a default feature?

Also it's reasonable thing to test how web_view example behaves without renderer feature

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Process helper needs web_renderer feature to be enabled, which is enabled by default. However, if by any chance it's disabled it gives you a nice error message about process helper needing the feature enabled.

I removed this requirement for the example now

compositor_render/src/event_loop.rs Outdated Show resolved Hide resolved
compositor_render/src/event_loop.rs Outdated Show resolved Hide resolved
compositor_render/src/transformations/web_renderer.rs Outdated Show resolved Hide resolved
compositor_render/src/event_loop.rs Outdated Show resolved Hide resolved
src/bin/package_for_release/bundle_linux.rs Outdated Show resolved Hide resolved
@noituri noituri force-pushed the @noituri/web-view-feature branch from e2940cb to f0e6b1b Compare January 4, 2024 09:28
@noituri noituri requested a review from wkozyra95 January 4, 2024 12:26
src/bin/package_for_release/main.rs Outdated Show resolved Hide resolved
src/bin/package_for_release/bundle_macos.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@jerzywilczek jerzywilczek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine but I don't really remember the architecture

@noituri noituri force-pushed the @noituri/web-view-feature branch from 8f70464 to c651562 Compare January 5, 2024 10:30
@noituri noituri force-pushed the @noituri/web-view-feature branch from c651562 to af4c915 Compare January 5, 2024 10:34
@noituri noituri requested a review from wkozyra95 January 5, 2024 11:12
@noituri noituri merged commit baf90e5 into master Jan 5, 2024
5 checks passed
@noituri noituri deleted the @noituri/web-view-feature branch January 5, 2024 14:16
Copy link
Member

@WojciechBarczynski WojciechBarczynski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

Add feature to disable web renderer
4 participants