Releases: magicant/yash-rs
Releases · magicant/yash-rs
yash-syntax-0.8.0
[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
nowconst
and#[must_use]
parser::lex::Operator::is_clause_delimiter
nowconst
and#[must_use]
<parser::lex::Operator as FromStr>::Err
from()
toParseOperatorError
<syntax::AndOr as FromStr>::Err
from()
toParseOperatorError
<syntax::AndOr as TryFrom<parser::lex::Operator>>::Error
from()
toTryFromOperatorError
<syntax::RedirOp as FromStr>::Err
from()
toParseOperatorError
<syntax::RedirOp as TryFrom<parser::lex::Operator>>::Error
from()
toTryFromOperatorError
Removed
impl TryFrom<&str> for parser::lex::Keyword
in favor ofFromStr
New Contributors
yash-syntax-0.7.0
[0.7.0] - 2023-11-12
Added
impl Default for Text
Changed
- Type of
HereDoc::content
fromRefCell<Text>
toOnceCell<Text>
- External dependency versions
- Rust 1.67.0 → 1.70.0
yash-quote-1.1.1
[1.1.1] - 2023-11-12
Changed
- More functions are now
#[inline]
and#[must_use]
.
yash-arith-0.2.1
[0.2.1] - 2023-11-12
Changed
- Improved documentation
yash-arith-0.2.0
[0.2.0] - 2023-09-10
Added
TokenError
,SyntaxError
,EvalError
,ErrorCause
, andError
now implementstd::error::Error
.
Changed
- Variable access is now fallible.
- Added associated type
GetVariableError
toEnv
. - Changed the return type of
Env::get_variable
fromOption<&str>
toResult<Option<&str>, GetVariableError>
. Error
,EvalError
andErrorCause
now take two type parameters, the first of which is forGetVariableError
.- Changed the return type of
eval
fromResult<Value, Error<E::AssignVariableError>>
toResult<Value, Error<E::GetVariableError, E::AssignVariableError>>
.
- Added associated type
- Internal dependency versions
- thiserror 1.0.43 → 1.0.47
yash-syntax-0.6.1
[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 ofInvalidCommandToken
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
[1.1.0] - 2023-05-01
Added
- The
Quoted
struct- The
as_raw
andneeds_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
- The
quoted
function
yash-quote-1.0.1
[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
[1.1.0] - 2022-10-22
Added
Pattern::rfind
yash-syntax-0.6.0
[0.6.0] - 2022-10-01
Added
source::Source::Arith
Changed
syntax::CompoundCommand::Subshell
from a tuple variantSubshell(List)
to a struct variantSubshell { body: Rc<List>, location: Location }
.- Dependency versions
- futures-util 0.3.21 → 0.3.23