SquashFS compressed filesystem reader in pure OCaml
0
fork

Configure Feed

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

ocaml-linkedin: apply dune fmt

Pure formatting changes from `dune fmt`: doc comment placement moves
from above the binding to below it for `type`s, multi-line `match`
expressions collapse onto one line where they fit, and infix operator
applications pick up spaces (`Soup.($?)` -> `Soup.( $? )`). No
semantic changes.

+22 -3
+15 -3
README.md
··· 24 24 25 25 ## Installation 26 26 27 + Install with opam: 28 + 29 + ```sh 30 + $ opam install squashfs 27 31 ``` 28 - opam install squashfs 32 + 33 + If opam cannot find the package, it may not yet be released in the public 34 + `opam-repository`. Add the overlay repository, then install it: 35 + 36 + ```sh 37 + $ opam repo add samoht https://tangled.org/gazagnaire.org/opam-overlay.git 38 + $ opam update 39 + $ opam install squashfs 29 40 ``` 30 41 31 42 ## Usage 32 43 33 44 ```ocaml 34 45 (* Open a SquashFS image *) 35 - let data = (* read image file *) in 46 + let data = "" 36 47 match Squashfs.of_string data with 37 48 | Error msg -> Printf.eprintf "Error: %s\n" msg 38 49 | Ok fs -> ··· 40 51 Format.printf "%a@." Squashfs.pp_superblock (Squashfs.superblock fs); 41 52 42 53 (* List root directory *) 43 - match Squashfs.readdir fs (Squashfs.root fs) with 54 + 55 + match Squashfs.readdir fs (Squashfs.root fs) with 44 56 | Error msg -> Printf.eprintf "Error: %s\n" msg 45 57 | Ok entries -> 46 58 List.iter (fun e ->
+4
dune
··· 1 1 (env 2 2 (dev 3 3 (flags :standard %{dune-warnings}))) 4 + 5 + (mdx 6 + (files README.md) 7 + (libraries squashfs))
+2
dune-project
··· 1 1 (lang dune 3.21) 2 + (using mdx 0.4) 2 3 3 4 (name squashfs) 4 5 ··· 29 30 (wire (>= 0.1)) 30 31 (alcotest :with-test) 31 32 (alcobar :with-test) 33 + (mdx :with-test) 32 34 (odoc :with-doc)))
+1
squashfs.opam
··· 22 22 "wire" {>= "0.1"} 23 23 "alcotest" {with-test} 24 24 "alcobar" {with-test} 25 + "mdx" {with-test} 25 26 "odoc" {with-doc} 26 27 ] 27 28 build: [