{"id":13828764,"url":"https://github.com/danger/rust","last_synced_at":"2025-05-03T16:32:18.834Z","repository":{"id":57616010,"uuid":"154741858","full_name":"danger/rust","owner":"danger","description":"⚠️ Stop saying \"you forgot to …\" in code review","archived":false,"fork":false,"pushed_at":"2018-12-18T21:04:00.000Z","size":1043,"stargazers_count":44,"open_issues_count":1,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-22T05:23:50.810Z","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/danger.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}},"created_at":"2018-10-25T21:47:36.000Z","updated_at":"2024-11-11T20:31:48.000Z","dependencies_parsed_at":"2022-08-27T07:30:48.111Z","dependency_job_id":null,"html_url":"https://github.com/danger/rust","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/danger%2Frust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danger%2Frust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danger%2Frust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danger%2Frust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danger","download_url":"https://codeload.github.com/danger/rust/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252216096,"owners_count":21713098,"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-08-04T09:03:07.348Z","updated_at":"2025-05-03T16:32:18.482Z","avatar_url":"https://github.com/danger.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# Danger in Rust\n\n[![Build Status](https://travis-ci.org/danger/rust/rust.svg?branch=master)](https://travis-ci.org/danger/rust)\n\nThis is the minimal version of running Danger in Rust. It is a cargo module which expects the [JSON DSL from\nDanger JS](https://danger.systems/js/usage/danger-process.html) and provides a type-safe way to interact with it \nfrom inside the app.\n\n![screenshots/wip1.png](screenshots/wip1.png)\n\n## Next Steps\n\n- Figure out the distribution method to get it running on other people's CI\n- Compiling a Rust dangerfile `danger.rs` and injecting that with the additional runtime work (passing data in/out)\n- Creating commands for `ci`, `pr`, `local`\n- Error handling\n\nI'm learning everything from scratch, so, some of these may take quite a while.\n\n# Contributing\n\n### Building Danger\n\n```sh\ncargo run --bin danger-rust\n```\n\n### Running Danger in Dev\n\nThis is how you can test out how things work:\n\n```sh\n# Pipe the JSON in and potentially compile + exec\ncat fixtures/danger-js-697.json | cargo run --bin danger-rust\n\n# Or, build then compile\n\n# build the binary\ncargo build --bin danger-rust\n# Run it and pipe in the JSON to STDIN\ncat fixtures/danger-js-697.json | ./target/debug/danger-rust\n```\n\n### Scripts\n\nUpdate the Rust Types from the JSON schema of Danger's DSL\n\n```sh\ncargo run --bin update_types\n```\n\nGrab a Danger JS incoming JSON example\n\n```sh\n# uses danger-js the `--dangerfile xxyy` is a bug\ndanger pr https://github.com/danger/danger-js/pull/697 --json \u003e fixtures/danger-js-697.json --dangerfile LICENSE\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanger%2Frust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanger%2Frust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanger%2Frust/lists"}