Skip to content

Commit 3e51dcf

Browse files
committed
rename
1 parent 669261a commit 3e51dcf

22 files changed

Lines changed: 62 additions & 62 deletions

DOCUMENTATION.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# htmlparser Documentation
1+
# html Documentation
22

33
This is the canonical manual for usage, API, selector behavior, performance workflow, conformance expectations, and internals.
44

@@ -24,7 +24,7 @@ This is the canonical manual for usage, API, selector behavior, performance work
2424

2525
```zig
2626
const std = @import("std");
27-
const html = @import("htmlparser");
27+
const html = @import("html");
2828
const options: html.ParseOptions = .{};
2929
const Document = options.GetDocument();
3030
@@ -147,7 +147,7 @@ Compilation modes:
147147

148148
## Mode Guidance
149149

150-
`htmlparser` is permissive by design. Choose parse options by workload:
150+
`html` is permissive by design. Choose parse options by workload:
151151

152152
| Mode | Parse Options | Best For | Tradeoffs |
153153
|---|---|---|---|
@@ -178,7 +178,7 @@ Artifacts:
178178
Benchmark policy:
179179

180180
- parse comparisons include `strlen`, `lexbor`, and parse-only `lol-html`
181-
- query parse/match/cached sections benchmark `htmlparser`
181+
- query parse/match/cached sections benchmark `html`
182182
- repeated runtime selector workloads should use cached selectors
183183

184184
## Latest Benchmark Snapshot

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2026 htmlparser contributors
3+
Copyright (c) 2026 html contributors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 🚀 htmlparser
1+
# 🚀 zhtml
22

33
High-throughput, destructive HTML parser + CSS selector engine for Zig.
44

@@ -52,7 +52,7 @@ Source: `bench/results/external_suite_report.json`
5252

5353
```zig
5454
const std = @import("std");
55-
const html = @import("htmlparser");
55+
const html = @import("html");
5656
const options: html.ParseOptions = .{};
5757
const Document = options.GetDocument();
5858

bench/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# Benchmark Suite
22

3-
This directory benchmarks `htmlparser` against other high-performance HTML parsers:
3+
This directory benchmarks `html` against other high-performance HTML parsers:
44

55
- `strlen` baseline (C) for raw string scan comparison
66
- `lexbor` (C, HTML5 parser)
77
- `lol-html` (Rust, streaming rewriter/parser; parse-only comparison in this suite)
88

9-
It also benchmarks `htmlparser` query parsing throughput (runtime selector compile path).
10-
Query sections remain `htmlparser`-only; external parser comparisons are parse throughput only.
9+
It also benchmarks `html` query parsing throughput (runtime selector compile path).
10+
Query sections remain `html`-only; external parser comparisons are parse throughput only.
1111
`query-parse` is mode-independent and is measured once (`ours`) to avoid duplicate compatibility rows.
1212

13-
`htmlparser` parse/query benchmark results are reported as:
13+
`html` parse/query benchmark results are reported as:
1414

1515
- `ours`: fastest parse option bundle (lazy child views + whitespace text-node dropping)
1616

build.zig

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@ pub fn build(b: *std.Build) void {
1616
const config_options = b.addOptions();
1717
config_options.addOption(IntLen, "intlen", intlen);
1818

19-
const mod = b.addModule("htmlparser", .{
19+
const mod = b.addModule("html", .{
2020
.root_source_file = b.path("src/root.zig"),
2121
.target = target,
2222
});
2323
mod.addOptions("config", config_options);
2424

2525
const exe = b.addExecutable(.{
26-
.name = "htmlparser",
26+
.name = "html",
2727
.root_module = b.createModule(.{
2828
.root_source_file = b.path("src/main.zig"),
2929
.target = target,
3030
.optimize = optimize,
3131
.imports = &.{
32-
.{ .name = "htmlparser", .module = mod },
32+
.{ .name = "html", .module = mod },
3333
},
3434
}),
3535
});
@@ -40,25 +40,25 @@ pub fn build(b: *std.Build) void {
4040
.target = target,
4141
.optimize = optimize,
4242
.imports = &.{
43-
.{ .name = "htmlparser", .module = mod },
43+
.{ .name = "html", .module = mod },
4444
},
4545
});
4646

4747
const bench_exe = b.addExecutable(.{
48-
.name = "htmlparser-bench",
48+
.name = "html-bench",
4949
.root_module = b.createModule(.{
5050
.root_source_file = b.path("tools/bench/bench.zig"),
5151
.target = target,
5252
.optimize = optimize,
5353
.imports = &.{
54-
.{ .name = "htmlparser", .module = mod },
54+
.{ .name = "html", .module = mod },
5555
.{ .name = "parse_mode", .module = parse_mode_mod },
5656
},
5757
}),
5858
});
5959

6060
const tools_exe = b.addExecutable(.{
61-
.name = "htmlparser-tools",
61+
.name = "html-tools",
6262
.root_module = b.createModule(.{
6363
.root_source_file = b.path("tools/scripts.zig"),
6464
.target = target,
@@ -72,7 +72,7 @@ pub fn build(b: *std.Build) void {
7272

7373
const run_step = b.step("run", "Run the demo app");
7474
const bench_step = b.step("bench", "Run parser/query benchmarks");
75-
const tools_step = b.step("tools", "Run htmlparser-tools utility");
75+
const tools_step = b.step("tools", "Run html-tools utility");
7676
const bench_compare_step = b.step("bench-compare", "Benchmark against external parser implementations");
7777
const conformance_step = b.step("conformance", "Run external parser/selector conformance suites (strictest+fastest)");
7878
const docs_check_step = b.step("docs-check", "Validate markdown links and documented commands");
@@ -150,13 +150,13 @@ pub fn build(b: *std.Build) void {
150150
.target = target,
151151
.optimize = optimize,
152152
.imports = &.{
153-
.{ .name = "htmlparser", .module = mod },
153+
.{ .name = "html", .module = mod },
154154
.{ .name = "examples", .module = b.createModule(.{
155155
.root_source_file = b.path("examples/examples.zig"),
156156
.target = target,
157157
.optimize = optimize,
158158
.imports = &.{
159-
.{ .name = "htmlparser", .module = mod },
159+
.{ .name = "html", .module = mod },
160160
},
161161
}) },
162162
},
@@ -171,7 +171,7 @@ pub fn build(b: *std.Build) void {
171171
.target = target,
172172
.optimize = optimize,
173173
.imports = &.{
174-
.{ .name = "htmlparser", .module = mod },
174+
.{ .name = "html", .module = mod },
175175
},
176176
}),
177177
.test_runner = .{ .path = b.path("tools/test_runner.zig"), .mode = .simple },
@@ -194,7 +194,7 @@ pub fn build(b: *std.Build) void {
194194
.target = target,
195195
.optimize = optimize,
196196
.imports = &.{
197-
.{ .name = "htmlparser", .module = mod },
197+
.{ .name = "html", .module = mod },
198198
.{ .name = "parse_mode", .module = parse_mode_mod },
199199
},
200200
}),

build.zig.zon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.{
2-
.name = .htmlparser,
2+
.name = .html,
33
.version = "0.0.0",
4-
.fingerprint = 0x157d4f00230d47f3,
4+
.fingerprint = 0x1879f8e53a69d776,
55
.minimum_zig_version = "0.16.0-dev.2984+cb7d2b056",
66
.dependencies = .{},
77
.paths = .{

examples/basic_parse_query.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const std = @import("std");
2-
const html = @import("htmlparser");
2+
const html = @import("html");
33
const default_options: html.ParseOptions = .{};
44
const Document = default_options.GetDocument();
55

examples/cached_selector.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const std = @import("std");
2-
const html = @import("htmlparser");
2+
const html = @import("html");
33
const default_options: html.ParseOptions = .{};
44
const Document = default_options.GetDocument();
55

examples/debug_query_report.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const std = @import("std");
2-
const html = @import("htmlparser");
2+
const html = @import("html");
33
const default_options: html.ParseOptions = .{};
44
const Document = default_options.GetDocument();
55

examples/inner_text_options.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const std = @import("std");
2-
const html = @import("htmlparser");
2+
const html = @import("html");
33
const default_options: html.ParseOptions = .{};
44
const Document = default_options.GetDocument();
55

0 commit comments

Comments
 (0)