refactor(libs/time): trim Datetime API and stabilize native FFI
- Remove from_unix_millis/to_unix_millis; keep only from_unix/to_unix
- Keep Datetime backed by @xtime.ZonedDateTime
- Revert native C FFI from tuple return to single Int64 total nanoseconds because the tuple ABI caused invalid memory access in async tests
- Update moonstore UUID generation and test fixtures to use to_unix()*1000
Co-Authored-By: Claude noreply@anthropic.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
moonbase
A MoonBit workspace for building web applications and shared libraries.
Modules
pony
A web framework inspired by Go’s Chi, featuring:
libs
Shared libraries used across the workspace.
url
A complete RFC 3986 URL parsing package, modeled after Go’s
net/url. Provides URL parsing, component extraction, percent-encoding, and query string handling.jwt
JWT creation, signing, parsing, and validation with HMAC-SHA256 (HS256). Supports registered claims (RFC 7519) and extensible custom claims.
mooncedar
A full Cedar policy engine implemented in MoonBit, featuring:
evaluate,reauthorize,concretize,is_authorizedtodo (TinyTodo)
A demo application showcasing Cedar policy-based authorization in a multi-user todo app. Built with
ponyfor HTTP routing andmooncedarfor policy evaluation.Getting Started
License
Apache 2.0 — see LICENSE for details.