Terminal styling and layout widgets for OCaml (tables, trees, panels, colors)
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Migrate from vendored crowbar to opam-pinned alcobar

- Remove vendored crowbar/ directory
- Replace all Crowbar references with Alcobar across 176 .ml files
- Update all fuzz dune files: crowbar → alcobar in libraries
- Remove 77 gen_corpus.ml files (alcobar handles corpus internally)
- Update dune-project files: crowbar → alcobar in dependencies
- Update merlint rules (e705, e726): Crowbar → Alcobar in checks,
docs, and examples
- Update merlint generated docs (index.html)

428 files changed, ~1200 lines removed net.

+7 -30
+3 -9
fuzz/dune
··· 1 1 (library 2 2 (name fuzz_tty) 3 3 (modules fuzz_tty) 4 - (libraries tty crowbar)) 4 + (libraries tty alcobar)) 5 5 6 6 (executable 7 7 (name fuzz) 8 8 (modules fuzz) 9 - (libraries fuzz_tty crowbar)) 10 - 11 - (executable 12 - (name gen_corpus) 13 - (modules gen_corpus) 14 - (libraries unix fmt)) 9 + (libraries fuzz_tty alcobar)) 15 10 16 11 (rule 17 12 (alias runtest) ··· 27 22 (= %{profile} afl)) 28 23 (deps 29 24 (source_tree corpus) 30 - fuzz.exe 31 - gen_corpus.exe) 25 + fuzz.exe) 32 26 (action 33 27 (echo "AFL fuzzer built: %{exe:fuzz.exe}\n")))
+1 -1
fuzz/fuzz.ml
··· 3 3 SPDX-License-Identifier: MIT 4 4 ---------------------------------------------------------------------------*) 5 5 6 - let () = Crowbar.run "tty" [ Fuzz_tty.suite ] 6 + let () = Alcobar.run "tty" [ Fuzz_tty.suite ]
+1 -1
fuzz/fuzz_tty.ml
··· 3 3 SPDX-License-Identifier: MIT 4 4 ---------------------------------------------------------------------------*) 5 5 6 - open Crowbar 6 + open Alcobar 7 7 open Tty 8 8 9 9 (* Width is always non-negative *)
+2 -2
fuzz/fuzz_tty.mli
··· 1 1 (** Fuzz tests for the Tty library. *) 2 2 3 - val suite : string * Crowbar.test_case list 4 - (** [suite] is the Crowbar fuzz test suite for {!Tty}. *) 3 + val suite : string * Alcobar.test_case list 4 + (** [suite] is the Alcobar fuzz test suite for {!Tty}. *)
-17
fuzz/gen_corpus.ml
··· 1 - (** Generate seed corpus for fuzz testing. *) 2 - 3 - let () = 4 - let dir = "corpus" in 5 - (try Unix.mkdir dir 0o755 with Unix.Unix_error (Unix.EEXIST, _, _) -> ()); 6 - let write name data = 7 - let oc = open_out_bin (Filename.concat dir name) in 8 - output_string oc data; 9 - close_out oc 10 - in 11 - write "seed_000" ""; 12 - write "seed_001" "\x00"; 13 - write "seed_002" "\xff"; 14 - write "seed_003" (String.make 16 '\x00'); 15 - write "seed_004" (String.make 16 '\xff'); 16 - write "seed_005" (String.init 256 Char.chr); 17 - Fmt.pr "gen_corpus: wrote 6 seed files@."