Skip to content

Commit

Permalink
Merge pull request #3 from calcit-lang/update
Browse files Browse the repository at this point in the history
upgrade deps
  • Loading branch information
NoEgAm authored May 20, 2024
2 parents 91419ea + 87a1491 commit 06abcdb
Show file tree
Hide file tree
Showing 9 changed files with 358 additions and 51 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,9 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: supplypike/setup-bin@v3
- uses: calcit-lang/setup-[email protected]
with:
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.8.9/cr'
name: 'cr'
version: '0.8.9'

- uses: supplypike/setup-bin@v3
with:
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.8.9/caps'
name: 'caps'
version: '0.8.9'
version: "0.8.52"

- uses: dtolnay/rust-toolchain@stable
with:
Expand Down
3 changes: 3 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

max_width = 136
tab_spaces = 2
103 changes: 94 additions & 9 deletions Cargo.lock

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

16 changes: 11 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
[package]
name = "calcit_regex"
version = "0.0.2"
version = "0.0.7"
authors = ["jiyinyiyong <[email protected]>"]
edition = "2021"

[lib]
name = "calcit_std"
name = "calcit_regex"
path = "src/lib.rs"
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.5.0"
cirru_parser = "0.1.25"
regex = "1.8.4"
cirru_edn = "0.6.8"
# cirru_edn = { path = "/Users/chenyong/repo/cirru/edn.rs" }
cirru_parser = "0.1.29"
regex = "1.10.4"
lazy_static = "1.4.0"

# [profile.release]
# debug = true
# opt-level = 1
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ regex.core/re-replace-all |1ab22c333 |\d{2} "\"X"
regex.core/re-split |1ab22c333 |\d{2}
; [] "\"1ab" "\"c" "\"3"
regex.core/re-pattern |\d+
; "creates any-ref to hold a native regex pattern"
```

```cirru
let
pattern $ regex.core/re-pattern "|\d+"
regex.core/re-find |a4 |\d
```

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

0 comments on commit 06abcdb

Please sign in to comment.