{"id":21527052,"url":"https://github.com/lambdaclass/cairo-rs-wasm","last_synced_at":"2025-04-09T23:34:37.432Z","repository":{"id":83420141,"uuid":"566446139","full_name":"lambdaclass/cairo-rs-wasm","owner":"lambdaclass","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-17T19:01:46.000Z","size":7,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-24T01:24:09.840Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lambdaclass.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-15T17:33:56.000Z","updated_at":"2024-05-22T02:07:59.000Z","dependencies_parsed_at":"2023-03-05T13:00:18.381Z","dependency_job_id":null,"html_url":"https://github.com/lambdaclass/cairo-rs-wasm","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/lambdaclass%2Fcairo-rs-wasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdaclass%2Fcairo-rs-wasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdaclass%2Fcairo-rs-wasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdaclass%2Fcairo-rs-wasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lambdaclass","download_url":"https://codeload.github.com/lambdaclass/cairo-rs-wasm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248130303,"owners_count":21052729,"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-11-24T01:47:36.069Z","updated_at":"2025-04-09T23:34:37.425Z","avatar_url":"https://github.com/lambdaclass.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Demo of `cairo-rs` on WebAssembly\n\nWhile cairo-rs is compatible with WebAssembly, it doesn't implement any bindings\nto it. Instead, create a new WebAssembly crate with cairo-rs as a dependency and\nimplement the required functionality there.\n\nSince mimalloc is not automatically compilable to WebAssembly, the cairo-rs\ndependency should disable the default features, which will in turn disable\nmimalloc.\n\nWebAssembly doesn't support filesystem access unless building with WASI support,\ntherefore cairo_run may not work as is. Running programs requires manual\nprogram, vm and runner initialization.\n\nA working example is provided in this repository.\n\n**Building**\n\n```sh\n# The web target generates a JavaScript module that is directly loadable by the\n# browser.\nwasm-pack build --target=web\n```\n\n**Running**\n\n```sh\n# Running from file:// will result in a CORS error.\nwasm-pack build --target=web\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambdaclass%2Fcairo-rs-wasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flambdaclass%2Fcairo-rs-wasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambdaclass%2Fcairo-rs-wasm/lists"}