How guanzi008/linyaps-rust works
Linyaps is a Rust-compatible implementation of the Linglong application packaging and runtime system. Its main user workflow is to discover or install a package with ll-cli, manage the resulting package state through the package-manager service and repository, then launch it in a configured container runtime. A separate builder workflow validates a project, obtains sources, builds and postprocesses modules, and exports or pushes packages. The graph preserves documented system integrations; several subsystem links are based on README-level descriptions because their implementation was not sampled.
Main entry points: local.rs Local repository · src/main.rs ll-cli / llpkg · src/main.rs ll-builder · runtime.rs Launch runtime
Components 32
Client and runtime
- ll-cli / llpkg
apps/ll-cli/src/main.rs - CLI parsing
apps/ll-cli/src/cli11.rs - Package analysis
apps/ll-cli/src/analysis.rs - Launch runtime
apps/ll-cli/src/runtime.rs - Namespaces
apps/ll-cli/src/namespace.rs - Wayland security
apps/ll-cli/src/wayland_security.rs - ll-box runtime
Package building
- ll-builder
apps/ll-builder/src/main.rs - Project validation
apps/ll-builder/src/project.rs - Source acquisition
apps/ll-builder/src/source.rs - Debian sources
apps/ll-builder/src/debian_source.rs - Container build
apps/ll-builder/src/build.rs - Build container
apps/ll-builder/src/container.rs - Module postprocess
apps/ll-builder/src/postprocess.rs - Builder repo operations
apps/ll-builder/src/repo_ops.rs - UAB packaging
apps/ll-builder/src/uab_packaging.rs
Package management
- Package-manager service
apps/ll-package-manager/src/main.rs - Install and lifecycle
apps/ll-package-manager/src/operations.rs - Install hooks
apps/ll-package-manager/src/install_hooks.rs - Run context setup
apps/ll-package-manager/src/run_context.rs - D-Bus tasks
crates/linyaps-dbus/src/package_manager.rs - Task tracking
crates/linyaps-dbus/src/task.rs
Repository and formats
- Local repository
crates/linyaps-repository/src/local.rs - Remote transport
crates/linyaps-repository/src/remote.rs - Layer and UAB formats
crates/linyaps-repository/src/layer_file.rs - UAB loader
apps/uab/src/loader.rs - Runtime configuration
crates/linyaps-core/src/oci_patch.rs
System integration
- System helper
apps/ll-system-helper/src/main.rs - Container init
apps/ll-init/src/main.rs - Driver detection
apps/ll-driver-detect/src/main.rs - polkit authorization
apps/ll-package-manager/src/polkit.rs
Other components
- User
Connections 35
- User → ll-cli / llpkg: invokes
README.md - ll-cli / llpkg → CLI parsing: parses commands
apps/ll-cli/src/main.rs - ll-cli / llpkg → Package analysis: dispatches analysis
apps/ll-cli/src/main.rs - ll-cli / llpkg → Launch runtime: dispatches runtime
apps/ll-cli/src/main.rs - Launch runtime → Namespaces: uses
apps/ll-cli/src/runtime.rs - Launch runtime → Wayland security: uses
apps/ll-cli/src/runtime.rs - Launch runtime → ll-box runtime: invokes
README.md - ll-cli / llpkg → Package-manager service: requests package tasks
README.md - User → ll-builder: builds packages
README.md - ll-builder → Project validation: validates project
apps/ll-builder/src/main.rs - ll-builder → Container build: dispatches build
apps/ll-builder/src/main.rs - Container build → Build container: runs build in
apps/ll-builder/src/build.rs - Container build → Source acquisition: obtains sources
apps/ll-builder/src/build.rs - Source acquisition → Debian sources: handles Debian sources
apps/ll-builder/src/source.rs - Container build → Module postprocess: postprocesses output
apps/ll-builder/src/build.rs - ll-builder → Builder repo operations: dispatches repository operations
apps/ll-builder/src/main.rs - ll-builder → UAB packaging: dispatches UAB generation
apps/ll-builder/src/main.rs - ll-builder → Local repository: imports and exports packages
README.md - Package-manager service → Install and lifecycle: serves lifecycle operations
apps/ll-package-manager/src/main.rs - Package-manager service → D-Bus tasks: exposes D-Bus service
README.md - D-Bus tasks → Task tracking: tracks tasks
crates/linyaps-dbus/src/package_manager.rs - Install and lifecycle → Install hooks: runs install hooks
apps/ll-package-manager/src/operations.rs - Package-manager service → Run context setup: initializes run context
apps/ll-package-manager/src/main.rs - Package-manager service → polkit authorization: authorizes requests
apps/ll-package-manager/src/main.rs - Install and lifecycle → Local repository: manages packages
README.md - ll-cli / llpkg → Local repository: searches and manages packages
README.md - Local repository → Remote transport: uses remote transport
crates/linyaps-repository/src/local.rs - Local repository → Layer and UAB formats: reads and writes layers
README.md - UAB loader → Local repository: imports UAB contents
README.md - Run context setup → Local repository: resolves package layers
README.md - Run context setup → Runtime configuration: configures runtime
README.md - System helper → Container init: installs system layout
README.md - System helper → Driver detection: installs system components
README.md - System helper → ll-box runtime: installs runtime companion
README.md - Launch runtime → Container init: uses container initialization
README.md