Skip to content

Commit 1e536a5

Browse files
committed
[new release] ppx_blob (0.9.0)
CHANGES: - Absolute paths are no longer concatenated with the source directory to form a blob candidate path: they are only treated as absolute paths. - Minor robustness improvements (reminder: this happens at build time): - Reading is done in one pass (instead of checking for existence first). - Only the first good path is queried (instead of both). - Better I/O error handling.
1 parent 9d1b7bb commit 1e536a5

File tree

1 file changed

+30
-0
lines changed
  • packages/ppx_blob/ppx_blob.0.9.0

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
opam-version: "2.0"
2+
authors: "John Whitington"
3+
maintainer: "[email protected]"
4+
homepage: "https://github.com/johnwhitington/ppx_blob"
5+
dev-repo: "git+https://github.com/johnwhitington/ppx_blob.git"
6+
bug-reports: "https://github.com/johnwhitington/ppx_blob/issues/"
7+
doc: "https://johnwhitington.github.io/ppx_blob/"
8+
license: "Unlicense"
9+
build: [
10+
["dune" "build" "-p" name "-j" jobs]
11+
["dune" "runtest" "-p" name "-j" jobs] {with-test}
12+
]
13+
depends: [
14+
"ocaml"
15+
"dune" {>= "1.11"}
16+
"ppxlib" {>= "0.9.0"}
17+
"alcotest" {with-test}
18+
]
19+
synopsis: "Include a file as a string at compile time"
20+
description:
21+
"ppx_blob allows you to include a binary blob from a file as a string. Writing `[%blob \"filename\"]` will replace the string with the contents of the file at compile time. This allows the inclusion of arbitary, possibly compressed, data, without the need to respect OCaml's lexical conventions."
22+
url {
23+
src:
24+
"https://github.com/johnwhitington/ppx_blob/releases/download/0.9.0/ppx_blob-0.9.0.tbz"
25+
checksum: [
26+
"sha256=f115e90a5f1075cedc9d930ab91271f8670ece4dee10dc1147ab39b8afb570e4"
27+
"sha512=bad11f8ffbec82a04bb5f90e7548a7ad9ac4bf7e9b733815f6c956d7e0002fb258c52783ded847ab09fe3cd60e5eac2901fccaefd4fd4f885f20942d0ef66fea"
28+
]
29+
}
30+
x-commit-hash: "38c7693141bd629b70cd8a17306f5ce359ea9c59"

0 commit comments

Comments
 (0)