Skip to content

Commit

Permalink
chore: prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
Fyko committed Nov 5, 2023
1 parent dcab088 commit a4985f8
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"cargo": {
"packageRules": [
{
"automerge": true,
"matchCurrentVersion": "/^0\\./",
"matchUpdateTypes": [
"patch"
],
"platformAutomerge": true
},
{
"automerge": true,
"matchCurrentVersion": ">=1.0.0",
"matchUpdateTypes": [
"minor",
"patch"
],
"platformAutomerge": true
}
],
"rangeStrategy": "bump"
},
"cloneSubmodules": true,
"extends": [
"config:base",
"group:allNonMajor",
":dependencyDashboard"
],
"labels": [
"dependencies"
]
}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release

on:
push:
tags: ["*"]
tags: ["v*.*.*"]

env:
CARGO_TERM_COLOR: always
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches: [main]
paths-ignore: ["**.md"]
tags-ignore: ["*"] # we run a test before release
pull_request:
paths-ignore: ["**.md"]

Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
- `png` - Enables PNG support for [`image`].
- `webp` - Enables WEBP support for [`image`].

## Benchmarking

| Name | Size | Language | Time |
| ------------- | ----------------------------- | --------------------------------------- | ---------------- |
| test_porn.gif | `50495726` bytes (`50.49` MB) | [Rust](./src/gif.rs#L61) | `22.719` seconds |
| test_porn.gif | `50495726` bytes (`50.49` MB) | [JavaScript](./test/node/nsfw_bench.js) | `219.96` seconds |

[crates.io]: https://img.shields.io/crates/v/nsfw.svg
[Documentation]: https://docs.rs/nsfw/badge.svg
[Build Status]: https://github.com/Fyko/nsfw/actions/workflows/ci.yml/badge.svg
Expand Down

0 comments on commit a4985f8

Please sign in to comment.