forked from external-repos/squoosh
Set 2021 edition
This commit is contained in:
@@ -3,6 +3,7 @@ name = "squoosh-resize"
|
|||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Surma <surma@surma.link>"]
|
authors = ["Surma <surma@surma.link>"]
|
||||||
publish = false
|
publish = false
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
#crate-type = ["cdylib", "rlib"]
|
#crate-type = ["cdylib", "rlib"]
|
||||||
|
|||||||
Binary file not shown.
@@ -1,8 +1,3 @@
|
|||||||
extern crate cfg_if;
|
|
||||||
extern crate resize;
|
|
||||||
extern crate rgb;
|
|
||||||
extern crate wasm_bindgen;
|
|
||||||
|
|
||||||
mod utils;
|
mod utils;
|
||||||
|
|
||||||
use cfg_if::cfg_if;
|
use cfg_if::cfg_if;
|
||||||
@@ -13,7 +8,7 @@ use wasm_bindgen::prelude::*;
|
|||||||
use wasm_bindgen::Clamped;
|
use wasm_bindgen::Clamped;
|
||||||
|
|
||||||
mod srgb;
|
mod srgb;
|
||||||
use srgb::{linear_to_srgb, Clamp};
|
use crate::srgb::{linear_to_srgb, Clamp};
|
||||||
|
|
||||||
cfg_if! {
|
cfg_if! {
|
||||||
// When the `wee_alloc` feature is enabled, use `wee_alloc` as the global
|
// When the `wee_alloc` feature is enabled, use `wee_alloc` as the global
|
||||||
|
|||||||
Reference in New Issue
Block a user