Comments (4)
Is this what you were thinking?
// build.rs
extern crate gcc;
fn main() {
let endianness = if cfg!(endian = "little") {
"0"
} else {
"1"
};
gcc::Config::new()
.include("decNumber")
.file("decNumber/decContext.c")
.file("decNumber/decDouble.c")
.file("decNumber/decNumber.c")
.file("decNumber/decPacked.c")
.file("decNumber/decQuad.c")
.file("decNumber/decSingle.c")
.file("decNumber/decimal128.c")
.file("decNumber/decimal32.c")
.file("decNumber/decimal64.c")
.define("DECNUMDIGITS", Some("34"))
.define("DECLITEND", Some(endianness))
.compile("libdecNumber.a");
}
from decimal.
Is the endian feature something rust exports by default?
from decimal.
Yeah, it's here in the reference and here in the docs.
from decimal.
Oh awesome! Thanks for the pointer :-)
from decimal.
Related Issues (20)
- Error compiling library on Raspbian
- sin() / cos() / tan() methods HOT 4
- Incorrect formatting HOT 2
- quantize() with quantum >1 doesn't work properly
- compilation fails on ppc64le, s390x, aarch64, armv7hl HOT 4
- unsigned d128
- Consider to move the crait in `rust_num`
- sqrt method HOT 1
- remove rustc-serialize HOT 4
- d128::from_str() returns Ok on non valid inputs HOT 1
- UB and usage of deprecated function HOT 10
- `from_str` panic HOT 2
- status of the project HOT 2
- Two d128 values are equal, but their hashes aren't
- d128 to integer value HOT 2
- `exp` causes infinite loop
- how to add this library with my own C program
- const literals? HOT 3
- Provide bindings to `decNumberRescale`
- Is the decimal crate still maintained/alive?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from decimal.