Skip to content

Commit

Permalink
feat: init
Browse files Browse the repository at this point in the history
  • Loading branch information
load1n9 committed Feb 10, 2025
1 parent 09515fb commit 15f5876
Show file tree
Hide file tree
Showing 18 changed files with 483 additions and 242 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# cargo build
target/
# wasm-pack
pkg/
pkg/
/target
144 changes: 88 additions & 56 deletions Cargo.lock

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

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ publish = false
crate-type = ["cdylib"]

[dependencies]
wasm-bindgen = { version = "0.2.70", features = ["serde-serialize"] }
serde = { version = "1.0", features = ["derive"] }
wasm-bindgen = { version = "=0.2.100", features = ["serde-serialize"] }
serde = { version = "1.0.217", features = ["derive"] }
serde-wasm-bindgen = "0.6.5"
png = "0.16.8"

[profile.release]
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Denosaurs
Copyright (c) 2025 Denosaurs

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
10 changes: 10 additions & 0 deletions deno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "@denosaurs/gmath",
"version": "0.2.0",
"exports": {
".": "./mod.ts"
},
"tasks": {
"wasmbuild": "deno run -A jsr:@deno/[email protected]"
}
}
20 changes: 20 additions & 0 deletions lib/pngs.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// @generated file from wasmbuild -- do not edit
// deno-lint-ignore-file
// deno-fmt-ignore-file

export function encode(
image: Uint8Array,
width: number,
height: number,
palette?: Uint8Array | null,
trns?: Uint8Array | null,
color?: number | null,
depth?: number | null,
compression?: number | null,
filter?: number | null,
): Uint8Array;
export function decode(image: Uint8Array): any;
export class DecodeResult {
private constructor();
free(): void;
}
Loading

0 comments on commit 15f5876

Please sign in to comment.