Skip to content

v0.4.2 (2024-04-01)

Compare
Choose a tag to compare
@github-actions github-actions released this 01 Apr 22:51
· 200 commits to main since this release

Release Notes

New features

  • OwnedIntegerSexp and etc now have try_from_iter() method for constructing
    a new instance from an iterator.

    Example:

    #[savvy]
    fn filter_integer_odd(x: IntegerSexp) -> savvy::Result<Sexp> {
        // is_na() is to propagate NAs
        let iter = x.iter().copied().filter(|i| i.is_na() || *i % 2 == 0);
        let out = OwnedIntegerSexp::try_from_iter(iter)?;
        out.into()
    }
  • OwnedIntegerSexp and etc now have try_from_slice() method for constructing
    a new instance from a slice or vec. This conversion is and has been possible
    via try_from(), but this method was added for discoverability.

  • OwnedIntegerSexp and etc now have try_from_scalar() method for
    constructing a new instance from a scalar value (e.g. i32). This conversion
    is and has been possible via try_from(), but this method was added for
    discoverability.

  • savvy-cli update and savvy-cli init now tries to parse the Rust files
    actually declared by mod keyword.

Download savvy-cli 0.4.2

File Platform Checksum
savvy-cli-aarch64-apple-darwin.tar.xz Apple Silicon macOS checksum
savvy-cli-x86_64-apple-darwin.tar.xz Intel macOS checksum
savvy-cli-x86_64-pc-windows-msvc.zip x64 Windows checksum
savvy-cli-aarch64-unknown-linux-gnu.tar.xz ARM64 Linux checksum
savvy-cli-x86_64-unknown-linux-gnu.tar.xz x64 Linux checksum