Skip to content

better-mojo/uuid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uuid

binding a mojo version of rust uuid.


UUID Mojo

🐝 binding uuid-rs for mojo 🔥

Mojo Version MIT License Pixi Badge
Contributors Welcome

简体中文 | English

Includes

Project Package Rank Description
uuid-ffi libuuid_ffi ⭐️⭐️⭐️ uuid-rs ffi
uuid-gen * ⭐️ generate mojo abi from uuid-ffi-core
uuid-mojo uuid_mojo ⭐️ uuid-mojo package

Installation

Quick Start

  1. Add the better-ffi, better-mojo channel to your mojoproject.toml, e.g:
    [project]
    channels = ["conda-forge", "https://conda.modular.com/max", "https://repo.prefix.dev/better-ffi",  "https://repo.prefix.dev/better-mojo", ]

or use magic:

magic project channel add "https://repo.prefix.dev/better-ffi" 
magic project channel add "https://repo.prefix.dev/better-mojo" 
  • add uuid to your dependencies
magic add uuid_mojo
magic add libuuid_ffi
 
 
# pixi add libuuid_ffi

Usage

from uuid_mojo import new_v4, new_v7, new_v4_2, version

fn main():
    var v = version()
    print(v)
    print(new_v4())
    print(new_v4_2())

Reference

uuid-rs

Rust FFI

Releases

No releases published

Packages

No packages published