Skip to content

26.05.06

Choose a tag to compare

@auguwu auguwu released this 26 Apr 21:42
· 117 commits to master since this release
e1e9c6a

Noelware.Violet

  • Add support for references in Result via std::reference_wrapper, like Optional (@auguwu)
  • Add a new panic system that should resembles Rust's panic interface (@auguwu)
    • It'll use std::terminate by default, which means you can setup your own termination handlers via std::set_terminate.
    • Assertions don't use the new panic system as they should only std::abort the process. They'll use the backtrace system once that's available.
  • Add ANYHOW, ANYHOW_FMT, ENSURE, and ENSURE_FMT macros in anyhow (@auguwu)
  • Add converting constructor for Result<T, E>(Err<F>) (@auguwu)
  • Add more methods to Result (not available in Result<void, E> specialization):
    • Map, MapOr, MapOrElse, MapOrDefault
    • UnwrapOrDefault

Git History: 26.05.05...master

Bazel

As of 21/01/26, we have plans on uploading all Noelware.Violet frameworks onto the BCR and our own (https://bzl.noelware.cloud). It could exist right now, if you are, you can use --registry=https://bzl.noelware.cloud and all frameworks will be available.

bazel_dep(name = "violet", version = "26.05.06")
archive_override(
    module_name = "violet",
    integrity = "sha256-T+KwJTYJ9h55Vhk/JVNGYjyUtkzHcW1YFpjvfScK4oU=",
    urls = [
        # "https://artifacts.noelware.org/bazel-registry/violet/26.05.06/bazeldist.tgz",
        "https://github.com/Noelware/violet/releases/download/26.05.06/bazeldist.tgz",
    ]
)

CMake

Right now, it is not the best to use the frameworks in a CMake environment! ehehe...~

Meson

Using the frameworks in a Meson environment is not ready yet!

GN ("Generate Ninja")

Using the frameworks in a GN environment is not ready yet!