Skip to content

Commit

Permalink
upgrade deps; ABI upgrade to 0.0.8; tag 0.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed May 18, 2024
1 parent d65e1e5 commit 33e6e4d
Show file tree
Hide file tree
Showing 8 changed files with 79 additions and 92 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,12 @@ jobs:

- uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
toolchain: stable
components: clippy

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

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

- run: cargo build --release

Expand Down
127 changes: 61 additions & 66 deletions Cargo.lock

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

18 changes: 9 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "calcit_std"
version = "0.2.2"
version = "0.2.3"
authors = ["jiyinyiyong <[email protected]>"]
edition = "2021"

Expand All @@ -14,17 +14,17 @@ crate-type = ["dylib"] # Creates dynamic lib
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
serde = { version = "1.0.185", features = ["derive"] }
serde_json = "1.0.105"
chrono = "0.4.26"
cirru_edn = "0.6.2"
cirru_parser = "0.1.28"
serde = { version = "1.0.202", features = ["derive"] }
serde_json = "1.0.117"
chrono = "0.4.38"
cirru_edn = "0.6.5"
cirru_parser = "0.1.29"
nanoid = "0.4.0"
rand = "0.8.5"
ctrlc = "3.4.0"
ctrlc = "3.4.4"
md5 = "0.7.0"
walkdir = "2.3.3"
glob = "0.3.0"
walkdir = "2.5.0"
glob = "0.3.1"

# [profile.release]
# lto = true
Expand Down
2 changes: 1 addition & 1 deletion calcit.cirru

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

2 changes: 1 addition & 1 deletion compact.cirru
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

{} (:package |calcit.std)
:configs $ {} (:init-fn |calcit.std.test/main!) (:reload-fn |calcit.std.test/reload!) (:version |0.2.1)
:configs $ {} (:init-fn |calcit.std.test/main!) (:reload-fn |calcit.std.test/reload!) (:version |0.2.3)
:modules $ []
:entries $ {}
:files $ {}
Expand Down
4 changes: 2 additions & 2 deletions src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub fn read_file_by_line(
match read_lines(&**name) {
Ok(lines) => {
// Consumes the iterator, returns an (Optional) String
for line in lines.flatten() {
for line in lines.map_while(Result::ok) {
match handler(vec![Edn::str(line)]) {
Ok(_) => {}
Err(e) => return Err(format!("failed reading line: {}", e)),
Expand Down Expand Up @@ -92,7 +92,7 @@ pub fn append_file(args: Vec<Edn>) -> Result<Edn, String> {
if args.len() == 2 {
match (&args[0], &args[1]) {
(Edn::Str(name), Edn::Str(content)) => {
let mut file = OpenOptions::new().write(true).append(true).open(&**name).unwrap();
let mut file = OpenOptions::new().append(true).open(&**name).unwrap();

if let Err(e) = writeln!(file, "{}", content) {
Err(format!("Failed to append to file {name:?}: {e}"))
Expand Down
Loading

0 comments on commit 33e6e4d

Please sign in to comment.