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
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,17 @@ jobs:
sudo apt-get update
sudo apt-get install -y llvm clang

- name: Install WASI SDK
run: |
wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-24/wasi-sdk-24.0-x86_64-linux.tar.gz
tar xvf wasi-sdk-24.0-x86_64-linux.tar.gz
echo "WASI_SDK_PATH=$PWD/wasi-sdk-24.0-x86_64-linux" >> $GITHUB_ENV

- name: Build WASM
run: deno task build
env:
CC: clang

- name: Build Browser WASM
run: deno task build:inline
env:
CC: clang

- name: Run Tests
run: deno task test
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
/npm
/lib
node_modules
.env
.env*
.DS_Store
89 changes: 47 additions & 42 deletions Cargo.lock

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

18 changes: 7 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "panchangam"
version = "0.1.2"
version = "0.2.1"
edition = "2024"
description = "High-precision Vedic Panchangam calculations using Swiss Ephemeris"
license = "MIT"
Expand All @@ -9,23 +9,19 @@ repository = "https://github.com/fusionstrings/panchangam"
[lib]
crate-type = ["cdylib", "rlib"]


[workspace]
members = []

[dependencies]
swisseph-wasm = "0.1.5"
wasm-bindgen = "0.2.106"
js-sys = "0.3.83"
chrono = { version = "0.4.42", features = ["serde"] }
serde = { version = "1.0.228", features = ["derive"] }
serde-wasm-bindgen = "0.6.5"
spa = "0.5.1"
# libc and libm were for internal C shims, potentially still needed for other reasons or can be removed if strictly delegation

# libc and libm were for internal C shims, potentially still needed for other reasons
libc = "0.2.180"
libm = "0.2.15"

# Build dependencies are no longer needed for compilation of C code here, BUT
# if we rely on the sub-crate to build the C code, good.
# However, we should remove the cc/bindgen from HERE if we are not building C code in THIS crate.
swiss-eph = { version = "0.2.1", features = ["embedded-ephe"] }
serde_json = "1.0.149"

[workspace]
members = ["."]
Loading