Stepan Koltsov
Stepan Koltsov
Encountered it while implementing https://github.com/bevyengine/bevy/pull/11109.
Frustum computation is nontrivial amount of code private in `update_frusta` system. Make it public. This is needed to decide which entities to spawn/despawn in `Update` based on camera changes. But...
The use case is this: configuration is stored in global variable as: ```rust static CFG: ArcSwap = ... ``` now I want to write a function which returns a configuration,...
## Bevy version main ## What you did ```rust use bevy::prelude::*; fn main() { App::new() .add_plugins(DefaultPlugins) .add_systems(Startup, hello_world_system) .run(); } fn hello_world_system(mut commands: Commands) { commands.spawn(Camera2dBundle::default()); commands.spawn(NodeBundle { style: Style...
Follow-up to https://github.com/bevyengine/bevy/pull/10793 [Rendered](https://github.com/stepancheg/bevy-rfcs/blob/non-unique-res/rfcs/73-non-unique-resource.md) ```rust struct NonUniqueResourceId { /* ... */ } impl NonUniqueResourceId { fn new() -> Self { /* ... */ } } impl NonUniqueResourceId { fn write_system(&self)...
1) clone simple project: https://github.com/stepancheg/spring-boot-whitelabel project contains controller with function ``` @RequestMapping("/throw") @ResponseBody public String t() { throw new RuntimeException(); } ``` and project calls ``` System.setProperty("error.whitelabel.enabled", "false"); ``` before...
## Environment * **IntelliJ Rust plugin version:** 0.4.191.5293-223 * **Rust toolchain version:** rustc 1.68.0-nightly (61a415be5 2023-01-12) * **IDE name and version:** Build #CL-223.8836.42, built on March 10, 2023 * **Operating...
Documentation says: https://github.com/crossterm-rs/crossterm/blob/769b18151c6c177d43c752cc964d2b3d058bcf14/src/command.rs#L12-L18 However, `PrintStyledContent::write_ansi` emits WinAPI calls, not just ANSI sequences. https://github.com/crossterm-rs/crossterm/blob/769b18151c6c177d43c752cc964d2b3d058bcf14/src/style.rs#L387-L396
Reserving `ready_chunks` limit every time may be too expensive when the limit is high but only a few number of messages available. Now rely on `Stream::size_hint` to reserve the capacity....