T01: Linux windowing backends, macOS build gate, generated lockfile exempt
This commit is contained in:
5 files changed
+826
-75
No files matched your search
@@ -16,6 +16,7 @@ jobs:
|
||||
components: clippy, rustfmt
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- run: scripts/check.sh
|
||||
- run: cargo build --locked
|
||||
|
||||
platforms:
|
||||
strategy:
|
||||
@@ -29,5 +30,5 @@ jobs:
|
||||
with:
|
||||
toolchain: "1.95"
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- run: cargo test --quiet
|
||||
- run: cargo build
|
||||
- run: cargo test --locked --quiet
|
||||
- run: cargo build --locked
|
||||
@@ -20,7 +20,7 @@ ELYTerminal. A terminal on GPUI and Ely components. `PRD.md` says what it does;
|
||||
|
||||
## Rules
|
||||
|
||||
- Files stay at or under 500 lines. Comments are one short line, and rare.
|
||||
- Hand-written files stay at or under 500 lines; `Cargo.lock`, which Cargo writes, is exempt. Comments are one short line, and rare.
|
||||
- Fail fast. No silent fallbacks. An error names its owner and what failed.
|
||||
- Log every state change on a key path with `log`: spawn, exit, folder change, settings load and save, blur path.
|
||||
- No dead code, no versioned names, no compatibility shims.
|
||||
|
||||
Generated
+809
-70
File diff suppressed because it is too large.
Load diff
+1
-1
@@ -13,7 +13,7 @@ anyhow = "1"
|
||||
ely-gpui-component = { git = "https://git.zacharyzhang.com/ZacharyZhang-NY/Ely-GPUI-Components.git", rev = "12512217bd9bc652ed6bbf10461b00cc26c01c21" }
|
||||
env_logger = "0.11"
|
||||
gpui = { package = "gpui-pre", version = "=0.3.8", default-features = false }
|
||||
gpui_platform = { package = "gpui-pre-platform", version = "=0.3.8", features = ["font-kit"] }
|
||||
gpui_platform = { package = "gpui-pre-platform", version = "=0.3.8", features = ["font-kit", "wayland", "x11"] }
|
||||
log = "0.4"
|
||||
|
||||
[lints.rust]
|
||||
|
||||
+12
-1
@@ -21,10 +21,21 @@ impl Render for Workspace {
|
||||
}
|
||||
}
|
||||
|
||||
/// A Linux app with no display server fails at start instead of running headless.
|
||||
#[cfg(target_os = "linux")]
|
||||
fn application() -> gpui::Application {
|
||||
gpui_platform::linux(gpui::WindowingModes::WAYLAND | gpui::WindowingModes::X11)
|
||||
}
|
||||
|
||||
#[cfg(not(target_os = "linux"))]
|
||||
fn application() -> gpui::Application {
|
||||
gpui_platform::application()
|
||||
}
|
||||
|
||||
fn main() {
|
||||
env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("elyterminal=info"))
|
||||
.init();
|
||||
gpui_platform::application()
|
||||
application()
|
||||
.with_assets(Assets)
|
||||
.run(|cx: &mut App| {
|
||||
ely_gpui_component::init(cx).expect("Ely failed to start");
|
||||
|
||||
Reference in new issue
Block a user