Skip to content

Commit 06abcdb

Browse files
authored
Merge pull request #3 from calcit-lang/update
upgrade deps
2 parents 91419ea + 87a1491 commit 06abcdb

File tree

9 files changed

+358
-51
lines changed

9 files changed

+358
-51
lines changed

.github/workflows/check.yaml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,9 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v4
1616

17-
- uses: supplypike/setup-bin@v3
17+
- uses: calcit-lang/setup-[email protected]
1818
with:
19-
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.8.9/cr'
20-
name: 'cr'
21-
version: '0.8.9'
22-
23-
- uses: supplypike/setup-bin@v3
24-
with:
25-
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.8.9/caps'
26-
name: 'caps'
27-
version: '0.8.9'
19+
version: "0.8.52"
2820

2921
- uses: dtolnay/rust-toolchain@stable
3022
with:

.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: 94 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
[package]
22
name = "calcit_regex"
3-
version = "0.0.2"
3+
version = "0.0.7"
44
authors = ["jiyinyiyong <[email protected]>"]
55
edition = "2021"
66

77
[lib]
8-
name = "calcit_std"
8+
name = "calcit_regex"
99
path = "src/lib.rs"
1010
crate-type = ["dylib"] # Creates dynamic lib
1111

1212

1313
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1414

1515
[dependencies]
16-
cirru_edn = "0.5.0"
17-
cirru_parser = "0.1.25"
18-
regex = "1.8.4"
16+
cirru_edn = "0.6.8"
17+
# cirru_edn = { path = "/Users/chenyong/repo/cirru/edn.rs" }
18+
cirru_parser = "0.1.29"
19+
regex = "1.10.4"
20+
lazy_static = "1.4.0"
21+
22+
# [profile.release]
23+
# debug = true
24+
# opt-level = 1

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ regex.core/re-replace-all |1ab22c333 |\d{2} "\"X"
2525
2626
regex.core/re-split |1ab22c333 |\d{2}
2727
; [] "\"1ab" "\"c" "\"3"
28+
29+
regex.core/re-pattern |\d+
30+
; "creates any-ref to hold a native regex pattern"
31+
```
32+
33+
```cirru
34+
let
35+
pattern $ regex.core/re-pattern "|\d+"
36+
regex.core/re-find |a4 |\d
2837
```
2938

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

0 commit comments

Comments
 (0)