{"id":20208497,"url":"https://github.com/ivan770/freight","last_synced_at":"2025-04-15T02:30:56.160Z","repository":{"id":202986049,"uuid":"708545187","full_name":"ivan770/freight","owner":"ivan770","description":"Nix Flake for building Rust-based Cloudflare Workers","archived":false,"fork":false,"pushed_at":"2025-02-08T15:18:30.000Z","size":20,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T08:17:00.388Z","etag":null,"topics":["cloudflare","cloudflare-workers","flake","nix","nixos","rust","serverless"],"latest_commit_sha":null,"homepage":"","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ivan770.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}},"created_at":"2023-10-22T21:31:19.000Z","updated_at":"2025-04-05T19:49:40.000Z","dependencies_parsed_at":"2023-10-27T21:28:55.361Z","dependency_job_id":null,"html_url":"https://github.com/ivan770/freight","commit_stats":null,"previous_names":["ivan770/freight"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivan770%2Ffreight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivan770%2Ffreight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivan770%2Ffreight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivan770%2Ffreight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivan770","download_url":"https://codeload.github.com/ivan770/freight/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248993844,"owners_count":21195264,"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":["cloudflare","cloudflare-workers","flake","nix","nixos","rust","serverless"],"created_at":"2024-11-14T05:35:52.139Z","updated_at":"2025-04-15T02:30:55.816Z","avatar_url":"https://github.com/ivan770.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Freight\n\nBuild your Rust-based Cloudflare Workers® with Nix!\n\n* Automatically installs `wasm-pack` and `wasm-bindgen` by analyzing project dependencies.\n* Maintains compatibility with the `worker-build` build process.\n* Supports custom Rust toolchains.\n\n## Getting started\n\nYou can use the following command to create a new Nix project with pre-configured Nix Flake:\n\n```sh\nnix flake init -t github:ivan770/freight\ncargo update\nwrangler deploy\n```\n\nMake sure that your Nix installation [supports Flakes](https://nixos.wiki/wiki/Flakes#Enable_flakes).\n\n## Usage\n\nFreight provides a single function named `mkWorker`, that allows you to build your projects.\n\n`mkWorker :: set -\u003e drv`\n\nThis function encapsulates both building (with `wasm-pack` and `wasm-bindgen`) and bundling (with `esbuild`) steps\nof a project build lifecycle.\n\nRequired attributes are `pname`, `version` and `src`.\n\nYou may specify any attributes supported by the\n[`mkCargoDerivation`](https://crane.dev/API.html#cranelibmkcargoderivation)\nfrom the [crane](https://github.com/ipetkov/crane) project.\n\nYou may optionally replace the default Rust toolchain with your own using the `craneLib` attribute.\nSee [crane documentation](https://crane.dev/examples/custom-toolchain.html) for more information on how to use custom toolchains.\n\n## License\n\nThis project is licensed under Apache License, Version 2.0.\n\nCloudflare, the Cloudflare logo, and Cloudflare Workers are trademarks and/or registered trademarks of Cloudflare, Inc. in the United States and other jurisdictions.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivan770%2Ffreight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivan770%2Ffreight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivan770%2Ffreight/lists"}