@@ -10,84 +10,92 @@ mod session;
1010#[ cfg( feature = "wayland" ) ]
1111mod wayland;
1212
13- use crate :: bevy_int:: spectator_cam:: SpectatorCameraPlugin ;
14- use crate :: bevy_int:: tracking_offset:: TrackingOffsetPlugin ;
15- use crate :: nodes:: drawable:: sky:: SkyPlugin ;
16- use crate :: nodes:: input;
17-
18- use bevy:: MinimalPlugins ;
19- use bevy:: a11y:: AccessibilityPlugin ;
20- use bevy:: app:: { App , ScheduleRunnerPlugin , TerminalCtrlCHandlerPlugin } ;
21- use bevy:: asset:: { AssetMetaCheck , UnapprovedPathMode } ;
22- use bevy:: audio:: AudioPlugin ;
23- use bevy:: core_pipeline:: CorePipelinePlugin ;
24- use bevy:: core_pipeline:: oit:: OrderIndependentTransparencySettings ;
25- use bevy:: core_pipeline:: tonemapping:: Tonemapping ;
26- use bevy:: diagnostic:: DiagnosticsPlugin ;
27- use bevy:: ecs:: schedule:: { ExecutorKind , ScheduleLabel } ;
28- use bevy:: gizmos:: GizmoPlugin ;
29- use bevy:: gltf:: GltfPlugin ;
30- use bevy:: input:: InputPlugin ;
31- use bevy:: pbr:: PbrPlugin ;
32- use bevy:: render:: pipelined_rendering:: {
33- PipelinedRenderThreadOnCreateCallback , PipelinedRenderingPlugin ,
13+ use bevy:: {
14+ MinimalPlugins ,
15+ a11y:: AccessibilityPlugin ,
16+ app:: { App , ScheduleRunnerPlugin , TerminalCtrlCHandlerPlugin } ,
17+ asset:: { AssetMetaCheck , UnapprovedPathMode } ,
18+ audio:: AudioPlugin ,
19+ core_pipeline:: {
20+ CorePipelinePlugin , oit:: OrderIndependentTransparencySettings , tonemapping:: Tonemapping ,
21+ } ,
22+ diagnostic:: DiagnosticsPlugin ,
23+ ecs:: schedule:: { ExecutorKind , ScheduleLabel } ,
24+ gizmos:: GizmoPlugin ,
25+ gltf:: GltfPlugin ,
26+ input:: InputPlugin ,
27+ pbr:: PbrPlugin ,
28+ prelude:: * ,
29+ render:: {
30+ RenderDebugFlags , RenderPlugin ,
31+ pipelined_rendering:: { PipelinedRenderThreadOnCreateCallback , PipelinedRenderingPlugin } ,
32+ settings:: { Backends , RenderCreation , WgpuSettings } ,
33+ } ,
34+ scene:: ScenePlugin ,
35+ window:: { CompositeAlphaMode , PresentMode } ,
36+ winit:: { WakeUp , WinitPlugin } ,
3437} ;
35- use bevy:: render:: settings:: { Backends , RenderCreation , WgpuSettings } ;
36- use bevy:: render:: { RenderDebugFlags , RenderPlugin } ;
37- use bevy:: scene:: ScenePlugin ;
38- use bevy:: window:: { CompositeAlphaMode , PresentMode } ;
39- use bevy:: winit:: { WakeUp , WinitPlugin } ;
4038use bevy_dmabuf:: import:: DmabufImportPlugin ;
41- use bevy_int:: entity_handle:: EntityHandlePlugin ;
42- use bevy_mod_openxr:: action_set_attaching:: OxrActionAttachingPlugin ;
43- use bevy_mod_openxr:: action_set_syncing:: OxrActionSyncingPlugin ;
44- use bevy_mod_openxr:: add_xr_plugins;
45- use bevy_mod_openxr:: exts:: OxrExtensions ;
46- use bevy_mod_openxr:: features:: overlay:: OxrOverlaySettings ;
47- use bevy_mod_openxr:: graphics:: { GraphicsBackend , OxrManualGraphicsConfig } ;
48- use bevy_mod_openxr:: init:: { OxrInitPlugin , should_run_frame_loop} ;
49- use bevy_mod_openxr:: reference_space:: OxrReferenceSpacePlugin ;
50- use bevy_mod_openxr:: render:: { OxrRenderPlugin , OxrWaitFrameSystem } ;
51- use bevy_mod_openxr:: resources:: { OxrFrameState , OxrFrameWaiter , OxrSessionConfig } ;
52- use bevy_mod_openxr:: types:: AppInfo ;
53- use bevy_mod_xr:: camera:: XrProjection ;
54- use bevy_mod_xr:: session:: { XrFirst , XrHandleEvents , XrSessionPlugin } ;
39+ use bevy_int:: {
40+ entity_handle:: EntityHandlePlugin , spectator_cam:: SpectatorCameraPlugin ,
41+ tracking_offset:: TrackingOffsetPlugin ,
42+ } ;
43+ use bevy_mod_openxr:: {
44+ action_set_attaching:: OxrActionAttachingPlugin ,
45+ action_set_syncing:: OxrActionSyncingPlugin ,
46+ add_xr_plugins,
47+ exts:: OxrExtensions ,
48+ features:: overlay:: OxrOverlaySettings ,
49+ graphics:: { GraphicsBackend , OxrManualGraphicsConfig } ,
50+ init:: { OxrInitPlugin , should_run_frame_loop} ,
51+ reference_space:: OxrReferenceSpacePlugin ,
52+ render:: { OxrRenderPlugin , OxrWaitFrameSystem } ,
53+ resources:: { OxrFrameState , OxrFrameWaiter , OxrSessionConfig } ,
54+ types:: AppInfo ,
55+ } ;
56+ use bevy_mod_xr:: {
57+ camera:: XrProjection ,
58+ session:: { XrFirst , XrHandleEvents , XrSessionPlugin } ,
59+ } ;
5560use clap:: Parser ;
56- use core:: client:: { Client , tick_internal_client} ;
57- use core:: task;
61+ use core:: {
62+ client:: { Client , tick_internal_client} ,
63+ task,
64+ } ;
5865use directories:: ProjectDirs ;
59- use nodes:: audio:: AudioNodePlugin ;
60- use nodes:: drawable:: lines:: LinesNodePlugin ;
61- use nodes:: drawable:: model:: ModelNodePlugin ;
62- use nodes:: drawable:: text:: TextNodePlugin ;
63- use nodes:: fields:: FieldDebugGizmoPlugin ;
64- use nodes:: spatial:: SpatialNodePlugin ;
65- use objects:: hmd:: HmdPlugin ;
66- use objects:: input:: mouse_pointer:: FlatscreenInputPlugin ;
67- use objects:: input:: oxr_controller:: ControllerPlugin ;
68- use objects:: input:: oxr_hand:: HandPlugin ;
69- use objects:: play_space:: PlaySpacePlugin ;
66+ use nodes:: {
67+ audio:: AudioNodePlugin ,
68+ drawable:: {
69+ lines:: LinesNodePlugin , model:: ModelNodePlugin , sky:: SkyPlugin , text:: TextNodePlugin ,
70+ } ,
71+ fields:: FieldDebugGizmoPlugin ,
72+ input,
73+ spatial:: SpatialNodePlugin ,
74+ } ;
75+ use objects:: {
76+ hmd:: HmdPlugin ,
77+ input:: {
78+ mouse_pointer:: FlatscreenInputPlugin , oxr_controller:: ControllerPlugin ,
79+ oxr_hand:: HandPlugin ,
80+ } ,
81+ play_space:: PlaySpacePlugin ,
82+ } ;
7083use openxr:: { EnvironmentBlendMode , ReferenceSpaceType } ;
7184use session:: { launch_start, save_session} ;
7285use stardust_xr_gluon:: object_registry:: ObjectRegistry ;
7386use stardust_xr_wire:: server:: LockedSocket ;
74- use std:: ops:: DerefMut as _;
75- use std:: path:: PathBuf ;
76- use std:: str:: FromStr ;
77- use std:: sync:: { Arc , OnceLock } ;
78- use tokio:: net:: UnixListener ;
79- use tokio:: sync:: Notify ;
80- use tokio:: task:: JoinError ;
81- use tracing:: metadata:: LevelFilter ;
82- use tracing:: { error, info} ;
83- use tracing_subscriber:: filter:: Directive ;
84- use tracing_subscriber:: { EnvFilter , fmt, prelude:: * } ;
87+ use std:: {
88+ ops:: DerefMut as _,
89+ path:: PathBuf ,
90+ str:: FromStr ,
91+ sync:: { Arc , OnceLock } ,
92+ } ;
93+ use tokio:: { net:: UnixListener , sync:: Notify , task:: JoinError } ;
94+ use tracing:: { error, info, metadata:: LevelFilter } ;
95+ use tracing_subscriber:: { EnvFilter , filter:: Directive , fmt, prelude:: * } ;
8596#[ cfg( feature = "wayland" ) ]
8697use wayland:: { Wayland , WaylandPlugin } ;
87- use zbus:: Connection ;
88- use zbus:: fdo:: ObjectManager ;
89-
90- use bevy:: prelude:: * ;
98+ use zbus:: { Connection , fdo:: ObjectManager } ;
9199
92100#[ derive( Debug , Clone , Parser ) ]
93101#[ clap( author, version, about, long_about = None ) ]
0 commit comments