Skip to content

Commit bc04db8

Browse files
committed
Init from template
0 parents  commit bc04db8

File tree

14 files changed

+286
-0
lines changed

14 files changed

+286
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.zig text eol=lf
2+
*.zon text eol=lf

.github/oldver.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"version": 2,
3+
"data": {
4+
"upstream": {
5+
"version": "1.5.7",
6+
"gitref": "refs/tags/v1.5.7",
7+
"revision": "ac66b19e6bd6b83238bf008eecc1298105298532"
8+
}
9+
}
10+
}

.github/workflows/library.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Build and test library
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
types: [opened, synchronize]
9+
workflow_dispatch:
10+
11+
jobs:
12+
build:
13+
name: Build and test library
14+
uses: zig-devel/.infra/.github/workflows/library.yml@main

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Prepare GH release
2+
3+
on:
4+
push:
5+
tags: [ '*.*.*-*' ]
6+
7+
jobs:
8+
release:
9+
name: Prepare GitHub release
10+
uses: zig-devel/.infra/.github/workflows/release.yml@main
11+
permissions:
12+
contents: write

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/.zig-cache
2+
/zig-out

.nvchecker.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[__config__]
2+
oldver = ".github/oldver.json"
3+
newver = ".github/newver.json"
4+
5+
[upstream]
6+
source = "git"
7+
git = "https://github.com/facebook/zstd/"
8+
prefix = "v"

LICENSES/0BSD.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Copyright (C) YEAR by AUTHOR EMAIL
2+
3+
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.
4+
5+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

LICENSES/BSD-3-Clause.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Copyright (c) <year> <owner>.
2+
3+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4+
5+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
6+
7+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8+
9+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
10+
11+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

LICENSES/GPL-2.0-only.txt

Lines changed: 117 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# [zstd](https://facebook.github.io/zstd/)@v1.5.7 [![Build and test library](https://github.com/zig-devel/zstd/actions/workflows/library.yml/badge.svg)](https://github.com/zig-devel/zstd/actions/workflows/library.yml)
2+
3+
Zstandard - Fast real-time compression algorithm
4+
5+
## Usage
6+
7+
Install library:
8+
9+
```sh
10+
zig fetch --save https://github.com/zig-devel/zstd/archive/refs/tags/1.5.7-0.tar.gz
11+
```
12+
13+
Statically link with `mod` module:
14+
15+
```zig
16+
const zstd = b.dependency("zstd", .{
17+
.target = target,
18+
.optimize = optimize,
19+
});
20+
21+
mod.linkLibrary(zstd.artifact("zstd"));
22+
```
23+
24+
## License
25+
26+
All code in this repo is multi-licensed under
27+
[0BSD](./LICENSES/0BSD.txt) OR
28+
[BSD-3-Clause](./LICENSES/BSD-3-Clause.txt) OR
29+
[GPL-2.0-only](./LICENSES/GPL-2.0-only.txt).

0 commit comments

Comments
 (0)