GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - RustPython/mpdecimal

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
c2rust
c2rust
 
 
libmpdec
libmpdec
 
 
src
src
 
 
testit-2.5.1
testit-2.5.1
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
COPYRIGHT.txt
COPYRIGHT.txt
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
README.md
README.md
 
 
configure.ac
configure.ac
 
 
rust-toolchain.toml
rust-toolchain.toml
 
 

Repository files navigation

mpdecimal (Rust)

Rust translation of libmpdec from mpdecimal 4.0.1, produced by c2rust. One source tree builds for all targets; the configuration is selected by target_pointer_width:

  • 64-bit targets: CONFIG_64 (uint128)
  • 32-bit targets: CONFIG_32 (ansi32)

The crate exports the C ABI of libmpdec (staticlib, rlib).

Layout

  • Cargo.toml, src/: the translated crate, written by c2rust/install.py. Do not edit by hand. Regenerate with c2rust/transpile-all.sh.
  • c2rust/: the translation pipeline, its run log (c2rust/RUNS.md) and the test scripts. See c2rust/README.md.
  • libmpdec/, configure.ac: the C sources and header configuration of mpdecimal 4.0.1, which are the input of the translation.
  • tests/: the short tests of mpdecimal 4.0.1, unmodified.
  • testit-2.5.1/: mpdecimal-testit 2.5.1, the long tests. The feature test-hooks is needed only for these tests.

Tests

The upstream C tests are linked with the crate's staticlib:

CRATE=root c2rust/test-short.sh macos-aarch64-uint128   # one target
CRATE=root c2rust/test-all.sh                           # all targets

The crate is frozen on the short tests (tests/runshort.sh, tests/runshort_alloc.sh). They pass on macOS aarch64/x86_64, Linux aarch64/x86_64/i686/s390x/armv7, wasm32-wasip1 and Windows x86_64, with and without test-hooks.

License

BSD-2-Clause, see COPYRIGHT.txt.

About

No description, website, or topics provided.

Resources

Readme
BSD-2-Clause license
Activity
Custom properties

Stars

2 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.