{"id":17305894,"url":"https://github.com/chipshort/wasm-float-transpiler","last_synced_at":"2025-04-14T13:34:44.365Z","repository":{"id":62821166,"uuid":"561938218","full_name":"chipshort/wasm-float-transpiler","owner":"chipshort","description":"(Experimental) Softfloats for WebAssembly","archived":false,"fork":false,"pushed_at":"2023-07-11T14:32:10.000Z","size":119,"stargazers_count":6,"open_issues_count":7,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T02:45:43.560Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chipshort.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-04T21:00:19.000Z","updated_at":"2025-03-26T09:37:31.000Z","dependencies_parsed_at":"2023-01-22T06:02:58.515Z","dependency_job_id":null,"html_url":"https://github.com/chipshort/wasm-float-transpiler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipshort%2Fwasm-float-transpiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipshort%2Fwasm-float-transpiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipshort%2Fwasm-float-transpiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipshort%2Fwasm-float-transpiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chipshort","download_url":"https://codeload.github.com/chipshort/wasm-float-transpiler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248889053,"owners_count":21178156,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T11:57:00.762Z","updated_at":"2025-04-14T13:34:44.334Z","avatar_url":"https://github.com/chipshort.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wasm Float Transpiler\n\nConverts a `wasm` file with floating point instructions (`f32`, `f64`) to one without such instructions.\nThe instructions are replaced with deterministic software implementations of these instructions.\n\n# Usage\n\nIn order to include the softfloat implementation in your project,\nchoose one of the `wasm-soft-float-*` backend crates as a dependency and include it in your build by adding a\n`pub use wasm_soft_floats_*::*;` to your project.\n\nCheck out the [backends](./backends) folder for the complete set of backend options and their supported operations.\nYour best bet is probably `wasm-soft-float-bs` based on the Berkeley Softfloat library. It covers almost all instructions.\n\nExample `lib.rs`:\n```rust\npub use wasm_soft_float_bs::*;\n\n#[no_mangle]\npub extern \"C\" fn test(a: f32, b: f32) -\u003e f32 {\n    a + b\n}\n```\n\nThen compile your project and call `wasm-float-transpiler` on your `wasm` file, like this:\n```bash\nwasm-float-transpiler my_project.wasm output.wasm\n```\nThe resulting `output.wasm` file now contains your finished WebAssembly without any trace of floating\npoint operations and with only the softfloat functions that you actually use.\n\n# Example\n\nCheck out the [examples](./examples) folder.\nTo compile the examples run:\n```bash\ncd examples\ncargo build --target wasm32-unknown-unknown --release --workspace\ncd ..\n```\nTo then transpile the resulting wasm, run:\n```bash\ncargo run -p wasm-float-transpiler -- ./examples/target/wasm32-unknown-unknown/release/basic_wasm_float.wasm output.wasm\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchipshort%2Fwasm-float-transpiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchipshort%2Fwasm-float-transpiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchipshort%2Fwasm-float-transpiler/lists"}