Skip to content

Commit 3424fc5

Browse files
committed
split module from std
1 parent b71f818 commit 3424fc5

File tree

6 files changed

+395
-141
lines changed

6 files changed

+395
-141
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "calcit_std"
2+
name = "calcit_regex"
33
version = "0.0.1"
44
authors = ["jiyinyiyong <[email protected]>"]
55
edition = "2018"
@@ -13,5 +13,6 @@ crate-type = ["dylib"] # Creates dynamic lib
1313
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1414

1515
[dependencies]
16-
cirru_edn = "0.2.8"
17-
cirru_parser = "0.1.12"
16+
cirru_edn = "0.2.11"
17+
cirru_parser = "0.1.16"
18+
regex = "1.5.4"

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Workflow
1+
## Calcit binding to Rust `regex`
22

33
> Rust library for Calcit runtime.
44
@@ -9,7 +9,10 @@ API 设计: https://github.com/calcit-lang/calcit_runner.rs/discussions/116 .
99
APIs:
1010

1111
```cirru
12-
lib.core/path-exists? a
12+
calcit.std.regex/re-matches |2 |\d
13+
calcit.std.regex/re-find |a4 |\d
14+
calcit.std.regex/re-find-index |a1 |\d
15+
calcit.std.regex/re-find-all |123 |\d+
1316
```
1417

1518
Install to `~/.config/calcit/modules/`, compile and provide `*.{dylib,so}` file with `./build.sh`.

0 commit comments

Comments
 (0)