update packages

This commit is contained in:
trimill 2024-10-28 22:42:21 -04:00
parent 4e61ca90f0
commit e4b4c981d2
6 changed files with 282 additions and 339 deletions

605
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -11,5 +11,5 @@ path = "src/main.rs"
talc-lang = { path = "../talc-lang" } talc-lang = { path = "../talc-lang" }
talc-std = { path = "../talc-std" } talc-std = { path = "../talc-std" }
rustyline = "14.0" rustyline = "14.0"
clap = { version = "4.5", features = ["derive"] } clap = { version = "4.5", features = ["std", "help", "usage", "derive", "error-context"], default-features = false }
ctrlc = "3.4" ctrlc = "3.4"

View file

@ -142,7 +142,7 @@ impl Validator for TalcHelper {
v => { mismatch = Some((v, t)); break } v => { mismatch = Some((v, t)); break }
}, },
"then" => match delims.pop() { "then" => match delims.pop() {
Some("if") => delims.push(t), Some("if" | "elif") => delims.push(t),
v => { mismatch = Some((v, t)); break } v => { mismatch = Some((v, t)); break }
} }
"catch" => match delims.pop() { "catch" => match delims.pop() {

View file

@ -4,13 +4,13 @@ version = "0.2.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
lalrpop-util = { version = "0.20", features = ["lexer", "unicode"] } lalrpop-util = { version = "0.22", features = ["lexer", "unicode"] }
num-complex = "0.4" num-complex = "0.4"
num-rational = { version = "0.4", default-features = false, features = [] } num-rational = { version = "0.4", default-features = false, features = [] }
num-traits = "0.2" num-traits = "0.2"
thiserror = "1.0" thiserror = "1.0"
lazy_static = "1.4" lazy_static = "1.5"
unicode-ident = "1.0" unicode-ident = "1.0"
[build-dependencies] [build-dependencies]
lalrpop = { version = "0.20", default_features = false, features = ["lexer", "unicode"]} lalrpop = { version = "0.22", default-features = false, features = ["lexer", "unicode"]}

View file

@ -6,8 +6,8 @@ edition = "2021"
[dependencies] [dependencies]
talc-lang = { path = "../talc-lang" } talc-lang = { path = "../talc-lang" }
talc-macros = { path = "../talc-macros" } talc-macros = { path = "../talc-macros" }
lazy_static = "1.4" lazy_static = "1.5"
regex = "1.10" regex = "1.11"
rand = { version = "0.8", optional = true } rand = { version = "0.8", optional = true }
[features] [features]

View file

@ -100,7 +100,7 @@ impl BufFile {
fn try_into_raw_fd(self) -> std::result::Result<RawFd, IntoInnerError<BufWriter<File>>> { fn try_into_raw_fd(self) -> std::result::Result<RawFd, IntoInnerError<BufWriter<File>>> {
match self { match self {
BufFile::Buffered { r, w } => { BufFile::Buffered { r, w } => {
w.into_inner()?.into_raw_fd(); let _ = w.into_inner()?.into_raw_fd();
Ok(r.into_inner().into_raw_fd()) Ok(r.into_inner().into_raw_fd())
} }
BufFile::Unbuffered { f } => Ok(f.into_raw_fd()), BufFile::Unbuffered { f } => Ok(f.into_raw_fd()),