Skip to content

Commit eaaf6a9

Browse files
committed
Initial commit
0 parents  commit eaaf6a9

File tree

10 files changed

+517
-0
lines changed

10 files changed

+517
-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: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
- main
6+
pull_request: {}
7+
8+
name: Test
9+
10+
jobs:
11+
build_and_test:
12+
name: Test
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: ACTIONS_ALLOW_UNSECURE_COMMANDS
18+
id: ACTIONS_ALLOW_UNSECURE_COMMANDS
19+
run: echo 'ACTIONS_ALLOW_UNSECURE_COMMANDS=true' >> $GITHUB_ENV
20+
21+
- name: add cr
22+
run: |
23+
mkdir -p $GITHUB_WORKSPACE/bin
24+
wget -O $GITHUB_WORKSPACE/bin/cr http://repo.calcit-lang.org/binaries/linux/cr
25+
chmod +x $GITHUB_WORKSPACE/bin/cr
26+
echo "::add-path::$GITHUB_WORKSPACE/bin"
27+
28+
- uses: actions-rs/toolchain@v1
29+
with:
30+
toolchain: stable
31+
32+
- run: cargo build --release
33+
34+
- run: mkdir dylibs/ && ls target/release/ && cp -v target/release/*.* dylibs/
35+
36+
- 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/

Cargo.lock

Lines changed: 26 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_std"
3+
version = "0.0.3"
4+
authors = ["jiyinyiyong <[email protected]>"]
5+
edition = "2018"
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.1.12"
17+
cirru_parser = "0.1.8"

README.md

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

build.sh

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

0 commit comments

Comments
 (0)