Rewild Your Web

build: move the shell under crates/beaver_shell

Signed-off-by: webbeef <me@webbeef.org>

+16 -12
+1 -1
Cargo.lock
··· 604 604 checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06" 605 605 606 606 [[package]] 607 - name = "beaver" 607 + name = "beaver-shell" 608 608 version = "0.1.0" 609 609 dependencies = [ 610 610 "axum",
+1 -1
Cargo.toml
··· 1 1 [workspace] 2 2 resolver = "2" 3 - members = ["beavershell"] 3 + members = ["crates/beaver_shell"] 4 4 5 5 # Copied from the main Cargo.toml to allow 6 6 # workspace inheritance from component/ crates.
+8 -4
beavershell/Cargo.toml crates/beaver_shell/Cargo.toml
··· 1 1 [package] 2 - name = "beaver" 2 + name = "beaver-shell" 3 3 license = "AGPL-3.0-or-later" 4 4 version.workspace = true 5 5 rust-version.workspace = true ··· 36 36 headers = { workspace = true } 37 37 image = { workspace = true } 38 38 keyboard-types = { workspace = true } 39 - libservo = { path = "../source/components/servo", features = ["background_hang_monitor", "bluetooth"], default-features = false } 39 + libservo = { path = "../../source/components/servo", features = ["background_hang_monitor", "bluetooth"], default-features = false } 40 40 log = { workspace = true } 41 41 mime_guess = { workspace = true } 42 42 parking_lot = { workspace = true } 43 43 rustls = { workspace = true, features = ["aws-lc-rs"] } 44 44 serde = { workspace = true } 45 45 serde_json = { workspace = true } 46 - servo-config = { path = "../source/components/config" } 47 - servo-config-macro = { path = "../source/components/config/macro" } 46 + servo-config = { path = "../../source/components/config" } 47 + servo-config-macro = { path = "../../source/components/config/macro" } 48 48 tokio = { workspace = true } 49 49 tower = "0.5" 50 50 tower-http = { version = "0.6", features = ["async-compression", "compression-zstd", "cors", "fs"] } ··· 60 60 61 61 [target.'cfg(target_os = "linux")'.dependencies] 62 62 gtk = { version = "0.18", optional = true } 63 + 64 + [[bin]] 65 + name = "beavershell" 66 + path = "src/main.rs"
beavershell/src/browser_window.rs crates/beaver_shell/src/browser_window.rs
beavershell/src/hotkeys.rs crates/beaver_shell/src/hotkeys.rs
beavershell/src/keyutils.rs crates/beaver_shell/src/keyutils.rs
beavershell/src/main.rs crates/beaver_shell/src/main.rs
beavershell/src/prefs.rs crates/beaver_shell/src/prefs.rs
beavershell/src/protocols/mod.rs crates/beaver_shell/src/protocols/mod.rs
beavershell/src/protocols/resource.rs crates/beaver_shell/src/protocols/resource.rs
beavershell/src/resources.rs crates/beaver_shell/src/resources.rs
beavershell/src/touch_event_simulator.rs crates/beaver_shell/src/touch_event_simulator.rs
beavershell/src/tray.rs crates/beaver_shell/src/tray.rs
beavershell/src/vhost.rs crates/beaver_shell/src/vhost.rs
+4 -4
build-arm64.sh
··· 28 28 export LDFLAGS="-L${SYSROOT}/lib/aarch64-linux-gnu -fuse-ld=lld" 29 29 30 30 # Build without tray icon or global key support 31 - cargo build --target aarch64-unknown-linux-gnu --profile ${PROFILE} -p beaver \ 31 + cargo build --target aarch64-unknown-linux-gnu --profile ${PROFILE} -p beaver-shell \ 32 32 --no-default-features \ 33 33 --features="libservo/clipboard,js_jit,max_log_level,webgpu" 34 34 35 - llvm-strip target/aarch64-unknown-linux-gnu/${PROFILE}/beaver 35 + llvm-strip target/aarch64-unknown-linux-gnu/${PROFILE}/beavershell 36 36 37 37 REMOTE_DIR=/home/mobian/beaver 38 38 ··· 42 42 ssh mobian@mobian 'mkdir -p /home/mobian/beaver' 43 43 44 44 # rsync the binary 45 - rsync -vz --progress target/aarch64-unknown-linux-gnu/${PROFILE}/beaver \ 46 - mobian@mobian:${REMOTE_DIR}/beaver 45 + rsync -vz --progress target/aarch64-unknown-linux-gnu/${PROFILE}/beavershell \ 46 + mobian@mobian:${REMOTE_DIR}/beavershell 47 47 48 48 # rsync the resources 49 49 rsync -avz --progress resources mobian@mobian:${REMOTE_DIR}/
+2 -2
readme.md
··· 23 23 ## Desktop builds 24 24 25 25 - Update with `forkme apply` 26 - - Build with `cargo build -r -p beaver` 27 - - Run with `cargo run -r -p beaver` or directly from the `target` directory as usual for Rust projects. 26 + - Build with `cargo build -r -p beaver-shell` 27 + - Run with `cargo run -r -p beaver-shell` or directly from the `target` directory as usual for Rust projects. 28 28 29 29 The current UI allows multiple windows, and each one is a simple tiling window manager. There is also a floating search window. 30 30