Skip to content

Commit acd21b4

Browse files
authored
Initial commit
0 parents  commit acd21b4

File tree

11 files changed

+505
-0
lines changed

11 files changed

+505
-0
lines changed

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
calcit.cirru -diff linguist-generated
3+
Cargo.lock -diff linguist-generated

.github/workflows/check.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
pull_request: {}
6+
7+
name: Test
8+
9+
jobs:
10+
build_and_test:
11+
name: Test
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- uses: calcit-lang/[email protected]
17+
18+
- uses: dtolnay/rust-toolchain@stable
19+
with:
20+
toolchain: stable
21+
22+
- uses: Swatinem/rust-cache@v2
23+
24+
- run: cargo build --release
25+
26+
- run: rm -rfv dylibs/* && mkdir dylibs/ && ls target/release/ && cp -v target/release/*.* dylibs/
27+
28+
- run: cr -1

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
/target
3+
4+
5+
# Added by cargo
6+
#
7+
# already existing elements were commented out
8+
9+
#/target
10+
11+
.calcit-error.cirru
12+
.compact-inc.cirru
13+
14+
/dylibs/

.rustfmt.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
max_width = 136
3+
tab_spaces = 2

Cargo.lock

Lines changed: 148 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[package]
2+
name = "calcit_dylib"
3+
version = "0.0.1"
4+
authors = ["jiyinyiyong <[email protected]>"]
5+
edition = "2021"
6+
7+
[lib]
8+
name = "calcit_std"
9+
path = "src/lib.rs"
10+
crate-type = ["dylib"] # Creates dynamic lib
11+
12+
13+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
14+
15+
[dependencies]
16+
cirru_edn = "0.6.13"
17+
cirru_parser = "0.1.31"

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## Workflow
2+
3+
> Rust library for Calcit runtime.
4+
5+
API 设计: https://github.com/calcit-lang/calcit_runner.rs/discussions/116 .
6+
7+
### Usages
8+
9+
APIs:
10+
11+
```cirru
12+
lib.core/path-exists? a
13+
```
14+
15+
Install to `~/.config/calcit/modules/`, compile and provide `*.{dylib,so}` file with `./build.sh`.
16+
17+
### Workflow
18+
19+
https://github.com/calcit-lang/dylib-workflow
20+
21+
### License
22+
23+
MIT

build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
rm -rfv dylibs/*
3+
cargo build --release
4+
mkdir -p dylibs/ && ls target/release/ && cp -v target/release/*.* dylibs/

0 commit comments

Comments
 (0)