~nickbp/soundview

cb72d542a6c62dd5519a5356acf5fb2cd5cdc725 — Nick Parker 3 months ago a0417a6
Bump dependencies and cut 0.1.5
3 files changed, 32 insertions(+), 26 deletions(-)

M Cargo.lock
M Cargo.toml
M src/hsl.rs
M Cargo.lock => Cargo.lock +25 -19
@@ 320,9 320,9 @@ dependencies = [

[[package]]
name = "crossbeam-channel"
version = "0.5.2"
version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e54ea8bc3fb1ee042f5aace6e3c6e025d3874866da222930f70ce62aceba0bfa"
checksum = "fdbfe11fe19ff083c48923cf179540e8cd0535903dc35e178a1fdeeb59aef51f"
dependencies = [
 "cfg-if 1.0.0",
 "crossbeam-utils",


@@ 330,9 330,9 @@ dependencies = [

[[package]]
name = "crossbeam-utils"
version = "0.8.7"
version = "0.8.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b5e5bed1f1c269533fa816a0a5492b3545209a205ca1a54842be180eb63a16a6"
checksum = "0bf124c720b7686e3c2663cf54062ab0f68a88af2fb6a030e87e30bf721fcb38"
dependencies = [
 "cfg-if 1.0.0",
 "lazy_static",


@@ 449,7 449,7 @@ checksum = "d39cd93900197114fa1fcb7ae84ca742095eed9442088988ae74fa744e930e77"
dependencies = [
 "cfg-if 1.0.0",
 "libc",
 "wasi",
 "wasi 0.10.2+wasi-snapshot-preview1",
]

[[package]]


@@ 637,9 637,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"

[[package]]
name = "libc"
version = "0.2.119"
version = "0.2.120"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1bf2e165bb3457c8e098ea76f3e3bc9db55f87aa90d52d0e6be741470916aaa4"
checksum = "ad5c14e80759d0939d013e6ca49930e59fc53dd8e5009132f76240c179380c09"

[[package]]
name = "libloading"


@@ 733,14 733,15 @@ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"

[[package]]
name = "mio"
version = "0.8.0"
version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ba272f85fa0b41fc91872be579b3bbe0f56b792aa361a380eb669469f68dafb2"
checksum = "7ba42135c6a5917b9db9cd7b293e5409e1c6b041e6f9825e92e55a894c63b6f8"
dependencies = [
 "libc",
 "log",
 "miow",
 "ntapi",
 "wasi 0.11.0+wasi-snapshot-preview1",
 "winapi",
]



@@ 845,13 846,12 @@ checksum = "b93853da6d84c2e3c7d730d6473e8817692dd89be387eb01b94d7f108ecb5b8c"

[[package]]
name = "nom"
version = "7.1.0"
version = "7.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b1d11e1ef389c76fe5b81bcaf2ea32cf88b62bc494e19f493d0b30e7a930109"
checksum = "a8903e5a29a317527874d0402f867152a3d21c908bb0b933e416c65e301d4c36"
dependencies = [
 "memchr",
 "minimal-lexical",
 "version_check",
]

[[package]]


@@ 936,9 936,9 @@ dependencies = [

[[package]]
name = "num_threads"
version = "0.1.3"
version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "97ba99ba6393e2c3734791401b66902d981cb03bf190af674ca69949b6d5fb15"
checksum = "c539a50b93a303167eded6e8dff5220cd39447409fb659f4cd24b1f72fe4f133"
dependencies = [
 "libc",
]


@@ 1240,7 1240,7 @@ dependencies = [

[[package]]
name = "soundview"
version = "0.1.4"
version = "0.1.5"
dependencies = [
 "anyhow",
 "bytemuck",


@@ 1283,9 1283,9 @@ checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"

[[package]]
name = "syn"
version = "1.0.86"
version = "1.0.88"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a65b3f4ffa0092e9887669db0eae07941f023991ab58ea44da8fe8e2d511c6b"
checksum = "ebd69e719f31e88618baa1eaa6ee2de5c9a1c004f1e9ecdb58e8352a13f20a01"
dependencies = [
 "proc-macro2",
 "quote",


@@ 1365,9 1365,9 @@ dependencies = [

[[package]]
name = "tracing"
version = "0.1.31"
version = "0.1.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f6c650a8ef0cd2dd93736f033d21cbd1224c5a967aa0c258d00fcf7dafef9b9f"
checksum = "4a1bdf54a7c28a2bbf701e1d2233f6c77f473486b94bee4f9678da5a148dca7f"
dependencies = [
 "cfg-if 1.0.0",
 "pin-project-lite",


@@ 1472,6 1472,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6"

[[package]]
name = "wasi"
version = "0.11.0+wasi-snapshot-preview1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"

[[package]]
name = "wasm-bindgen"
version = "0.2.79"
source = "registry+https://github.com/rust-lang/crates.io-index"

M Cargo.toml => Cargo.toml +1 -1
@@ 1,6 1,6 @@
[package]
name = "soundview"
version = "0.1.4"
version = "0.1.5"
edition = "2021"
authors = ["Nick Parker <nick@nickbp.com>"]
license-file = "LICENCE.md"

M src/hsl.rs => src/hsl.rs +6 -6
@@ 43,15 43,15 @@ fn value_to_rgba(max_lum: f32, lum_exponent: f32, value: f32) -> u32 {
    // Worst case can do a conversion here without affecting perf.
    if lum < 1. {
        ((hue_to_rgbval_with_p0(lum, hue + 1. / 3.) * 255.) as u32 * 1)
        | ((hue_to_rgbval_with_p0(lum, hue) * 255.) as u32 * 256)
        | ((hue_to_rgbval_with_p0(lum, hue - 1. / 3.) * 255.) as u32 * 65536)
        | 255 * 16777216
            | ((hue_to_rgbval_with_p0(lum, hue) * 255.) as u32 * 256)
            | ((hue_to_rgbval_with_p0(lum, hue - 1. / 3.) * 255.) as u32 * 65536)
            | 255 * 16777216
    } else {
        lum -= 1.;
        ((hue_to_rgbval_with_q1(lum, hue + 1. / 3.) * 255.) as u32 * 1)
        | ((hue_to_rgbval_with_q1(lum, hue) * 255.) as u32 * 256)
        | ((hue_to_rgbval_with_q1(lum, hue - 1. / 3.) * 255.) as u32 * 65536)
        | 255 * 16777216
            | ((hue_to_rgbval_with_q1(lum, hue) * 255.) as u32 * 256)
            | ((hue_to_rgbval_with_q1(lum, hue - 1. / 3.) * 255.) as u32 * 65536)
            | 255 * 16777216
    }
}