Files
Zachary D. Rowitsch df0adbaba2 Add anchor link navigation with same-page scroll and fragment support
Implement three anchor link scenarios: same-page fragments (#section)
scroll without reload, cross-page fragments (page.html#section) scroll
after load, and back/forward across fragment-only changes scroll without
reload. Fragments are percent-decoded before DOM lookup and fall back to
legacy <a name="..."> anchors per the HTML spec.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 19:08:38 -05:00

69 lines
1.4 KiB
TOML

[package]
name = "app_browser"
version = "0.1.0"
edition = "2021"
publish = false
# The desktop application shell. This crate owns:
# - window creation
# - platform event loop integration
# - wiring together runtime + engine crates
# No browser logic or engine internals should live here.
[[bin]]
name = "app_browser"
path = "src/main.rs"
[dependencies]
# Internal crates
browser_runtime = { path = "../browser_runtime" }
platform = { path = "../platform" }
shared = { path = "../shared" }
net = { path = "../net" }
html = { path = "../html" }
dom = { path = "../dom" }
css = { path = "../css" }
style = { path = "../style" }
layout = { path = "../layout" }
display_list = { path = "../display_list" }
render = { path = "../render" }
image = { path = "../image" }
# Logging / tracing
tracing.workspace = true
tracing-subscriber.workspace = true
log.workspace = true
# Error handling
anyhow.workspace = true
# URL parsing
url.workspace = true
percent-encoding.workspace = true
# Platform abstraction helpers (narrow usage only)
once_cell.workspace = true
# --- Platform-specific deps go here (feature-gated later) ---
[target.'cfg(target_os = "macos")'.dependencies]
# Example placeholders (do not add until needed)
# cocoa = "0.25"
# objc = "0.2"
[target.'cfg(target_os = "linux")'.dependencies]
# Example placeholders
# x11 = "2"
# wayland-client = "0.31"
# --- Dev Dependencies (testing) ---
[dev-dependencies]
tempfile = "3"
# --- Lints ---
[lints]
workspace = true