Skip to content

Commit

Permalink
split module from std
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed Nov 15, 2021
1 parent b71f818 commit 3424fc5
Show file tree
Hide file tree
Showing 6 changed files with 395 additions and 141 deletions.
47 changes: 40 additions & 7 deletions Cargo.lock

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

7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "calcit_std"
name = "calcit_regex"
version = "0.0.1"
authors = ["jiyinyiyong <[email protected]>"]
edition = "2018"
Expand All @@ -13,5 +13,6 @@ crate-type = ["dylib"] # Creates dynamic lib
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
cirru_edn = "0.2.8"
cirru_parser = "0.1.12"
cirru_edn = "0.2.11"
cirru_parser = "0.1.16"
regex = "1.5.4"
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Workflow
## Calcit binding to Rust `regex`

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

```cirru
lib.core/path-exists? a
calcit.std.regex/re-matches |2 |\d
calcit.std.regex/re-find |a4 |\d
calcit.std.regex/re-find-index |a1 |\d
calcit.std.regex/re-find-all |123 |\d+
```

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

0 comments on commit 3424fc5

Please sign in to comment.