Skip to content

Releases: magicant/yash-rs

yash-syntax-0.8.0

08 Apr 16:11
yash-syntax-0.8.0
Compare
Choose a tag to compare

[0.8.0] - 2024-04-09

Starting from this version, the yash-syntax crate can be compiled on non-Unix platforms, where RawFd falls back to i32.

Added

  • source::Source::Eval
  • source::Source::DotScript
  • source::pretty::Footer
  • source::pretty::Message::footers
  • source::pretty::MessageBase::footers
  • parser::lex::Keyword::as_str
  • parser::lex::ParseKeywordError
  • impl FromStr for parser::lex::Keyword
  • parser::lex::Operator::as_str
  • parser::lex::ParseOperatorError
  • parser::lex::TryFromOperatorError

Changed

  • parser::lex::Keyword::is_clause_delimiter now const and #[must_use]
  • parser::lex::Operator::is_clause_delimiter now const and #[must_use]
  • <parser::lex::Operator as FromStr>::Err from () to ParseOperatorError
  • <syntax::AndOr as FromStr>::Err from () to ParseOperatorError
  • <syntax::AndOr as TryFrom<parser::lex::Operator>>::Error from () to TryFromOperatorError
  • <syntax::RedirOp as FromStr>::Err from () to ParseOperatorError
  • <syntax::RedirOp as TryFrom<parser::lex::Operator>>::Error from () to TryFromOperatorError

Removed

  • impl TryFrom<&str> for parser::lex::Keyword in favor of FromStr

New Contributors

  • @kpcyrd made their first contribution in #357 (Make yash-syntax compile on windows/wasm/embedded)

yash-syntax-0.7.0

11 Nov 15:30
yash-syntax-0.7.0
Compare
Choose a tag to compare

[0.7.0] - 2023-11-12

Added

  • impl Default for Text

Changed

  • Type of HereDoc::content from RefCell<Text> to OnceCell<Text>
  • External dependency versions
    • Rust 1.67.0 → 1.70.0

yash-quote-1.1.1

11 Nov 15:29
yash-quote-1.1.1
Compare
Choose a tag to compare

[1.1.1] - 2023-11-12

Changed

  • More functions are now #[inline] and #[must_use].

yash-arith-0.2.1

11 Nov 15:25
yash-arith-0.2.1
Compare
Choose a tag to compare

[0.2.1] - 2023-11-12

Changed

  • Improved documentation

yash-arith-0.2.0

10 Sep 03:26
yash-arith-0.2.0
Compare
Choose a tag to compare

[0.2.0] - 2023-09-10

Added

  • TokenError, SyntaxError, EvalError, ErrorCause, and Error now implement std::error::Error.

Changed

  • Variable access is now fallible.
    • Added associated type GetVariableError to Env.
    • Changed the return type of Env::get_variable from Option<&str> to Result<Option<&str>, GetVariableError>.
    • Error, EvalError and ErrorCause now take two type parameters, the first of which is for GetVariableError.
    • Changed the return type of eval from Result<Value, Error<E::AssignVariableError>> to Result<Value, Error<E::GetVariableError, E::AssignVariableError>>.
  • Internal dependency versions
    • thiserror 1.0.43 → 1.0.47

yash-syntax-0.6.1

01 May 10:08
yash-syntax-0.6.1
Compare
Choose a tag to compare

[0.6.1] - 2023-05-01

Added

  • Variants of parser::SyntaxError: MissingSeparator, UnopenedGrouping,
    UnopenedSubshell, UnopenedLoop, UnopenedDoClause, UnopenedIf,
    UnopenedCase, InAsCommandName

Changed

  • parser::Parser::command_line to return the newly added variants of
    SyntaxError instead of InvalidCommandToken depending on the type of
    erroneous tokens.
  • Dependency versions
    • Rust 1.58.0 → 1.67.0
    • async-trait 0.1.56 → 0.1.66
    • futures-util 0.3.23 → 0.3.27
    • itertools 0.10.3 → 0.10.5

yash-quote-1.1.0

01 May 10:07
yash-quote-1.1.0
Compare
Choose a tag to compare

[1.1.0] - 2023-05-01

Added

  • The Quoted struct
    • The as_raw and needs_quoting methods
    • impl std::fmt::Display for Quoted<'_>
    • impl<'a> From<&'a str> for Quoted<'a>
    • impl<'a> From<Quoted<'a>> for Cow<'a, str>
  • The quoted function

yash-quote-1.0.1

05 Jan 07:37
yash-quote-1.0.1
Compare
Choose a tag to compare

[1.0.1] - 2023-01-05

Fixed

  • yash-quote now quotes strings containing :~ so that the results can safely be used in the value of an assignment.

yash-fnmatch-1.1.0

21 Oct 15:49
yash-fnmatch-1.1.0
Compare
Choose a tag to compare

[1.1.0] - 2022-10-22

Added

  • Pattern::rfind

yash-syntax-0.6.0

01 Oct 02:28
yash-syntax-0.6.0
Compare
Choose a tag to compare

[0.6.0] - 2022-10-01

Added

  • source::Source::Arith

Changed

  • syntax::CompoundCommand::Subshell from a tuple variant Subshell(List) to a struct variant Subshell { body: Rc<List>, location: Location }.
  • Dependency versions
    • futures-util 0.3.21 → 0.3.23