table-editor 0.4.0

A local HTTP server and browser bundle for editing a repository's JSONL tables
[package]

name = "table-editor"

version = "0.4.0"

authors = ["Richard Keelan"]

edition = "2024"

# Established by building on it: 1.88 is where `if let` chains landed, which

# `launch.rs` uses, and 1.87 fails to compile the crate.

rust-version = "1.88"

license = "MIT"

repository = "https://github.com/RKeelan/TableEditor"

readme = "README.md"

description = "A local HTTP server and browser bundle for editing a repository's JSONL tables"

keywords = ["jsonl", "table", "editor", "spreadsheet", "local"]

categories = ["web-programming::http-server", "development-tools", "encoding"]



# What a consumer needs and nothing else. The browser bundle ships as the one

# page the crate embeds, rather than as the React sources it was built from:

# `Web/` is 200-odd megabytes of installed dependencies away from being useful

# and a consumer never builds it. Everything about how the page is made stays

# in the repository, which `repository` points at.

#

# The patterns are gitignore patterns, so each is anchored with a leading

# slash: an unanchored `README.md` would match one in every directory it can

# reach, `Web/node_modules` included.

include = [

    "/build.rs",

    "/src/**/*.rs",

    "/assets/index.html",

    "/assets/placeholder.html",

    "/examples/library/**",

    "/README.md",

    "/LICENSE",

]



[lib]

name = "table_editor"

path = "src/lib.rs"



# A worked consumer to develop the browser bundle against; see the README.

[[example]]

name = "library"

path = "examples/library/main.rs"

required-features = ["server"]



[features]

default = ["server"]

# The HTTP server, the launcher, the schema, and the embedded browser bundle.

# Without it the crate is the JSONL codec and the error types alone.

server = ["dep:anyhow", "dep:clap", "dep:tiny_http", "dep:windows-sys"]



[dependencies]

anyhow = { version = "=1.0.104", optional = true }

clap = { version = "=4.6.7", features = ["derive"], optional = true }

serde = { version = "=1.0.229", features = ["derive"] }

serde_json = "=1.0.151"

tiny_http = { version = "=0.12.0", optional = true }



# Windows hands a child every inheritable handle its parent holds, whatever the

# child's own standard handles are set to. Detaching a worker therefore takes

# saying so; see launch::detach_standard_handles.

[target.'cfg(windows)'.dependencies]

windows-sys = { version = "=0.61.2", features = [

    "Win32_Foundation",

    "Win32_System_Console",

], optional = true }