Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish on tag creation

on:
push:
tags:
- '*'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
11 changes: 0 additions & 11 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,6 @@ env:
CARGO_TERM_COLOR: always

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: katyo/publish-crates@v2
with:
dry-run: true
build:
runs-on: ubuntu-latest
steps:
Expand Down
8 changes: 0 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 5 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
[package]
name = "tiny-clean"
version = "0.1.0"
authors = [" Kalev Gonvick kalev.gonvick@idemio.dev"]
edition = "2024"
description = "A lightweight, high-performance string sanitizer with configurable rules."
license = "Apache-2.0"
repository = "https://github.com/idemio/tiny-clean"
readme = "README.md"

description = "A lightweight, high-performance string sanitizer with configurable rules."
categories = ["algorithms", "development-tools", "text-processing"]

keywords = ["text", "sanitizer", "encoder", "string-manipulation", "utility"]
readme = "README.md"

[profile.release]
strip = "symbols"
opt-level = 3

[dependencies]
log = "0.4.27"
fnv = "1.0.7"

[dev-dependencies]
criterion = "0.5.1"

Expand Down
2 changes: 1 addition & 1 deletion src/java_script_encoder.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::common::{HEX, HEX_MASK, HEX_SHIFT, char_bucket, char_mask, encode_as_hex_byte, encode_as_unicode, dump_masks_to_ascii};
use crate::common::{char_bucket, char_mask, encode_as_hex_byte, encode_as_unicode, dump_masks_to_ascii};

#[derive(Debug, Clone, Copy, PartialEq)]
pub enum JavaScriptEncoderMode {
Expand Down