Follow Zig conventions; Update zig bitcode export fn names; Update rust

to use bitcode fn name consts;
This commit is contained in:
Jared Ramirez 2020-10-29 15:43:22 -07:00
parent de36c8e270
commit 08b78e9c9b
3 changed files with 213 additions and 189 deletions

View file

@ -16,3 +16,10 @@ pub fn get_bytes() -> Vec<u8> {
.expect("Unable to read builtins bitcode");
buffer
}
pub const MATH_ATAN: &str = "roc_builtins.math.atan";
pub const MATH_IS_FINITE: &str = "roc_builtins.math.is_finite";
pub const MATH_POW_INT: &str = "roc_builtins.math.pow_int";
pub const STR_COUNT_SEGEMENTS: &str = "roc_builtins.str.count_segements";
pub const STR_STR_SPLIT_IN_PLACE: &str = "roc_builtins.str.str_split_in_place";