{"id":18675930,"url":"https://github.com/compeydev/signals-rs","last_synced_at":"2026-03-16T17:37:10.502Z","repository":{"id":161648704,"uuid":"617870546","full_name":"CompeyDev/signals-rs","owner":"CompeyDev","description":"A lua(u)-inspired implementation of signals/events in rust.","archived":false,"fork":false,"pushed_at":"2023-05-12T09:27:09.000Z","size":1255,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T02:11:36.460Z","etag":null,"topics":["lua","lua-signals","luau","luau-signals","rust","rust-library","signals","signals-rs"],"latest_commit_sha":null,"homepage":"http://docs.devcomp.xyz/signals_rs","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/CompeyDev.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-23T09:35:12.000Z","updated_at":"2025-01-05T09:05:02.000Z","dependencies_parsed_at":"2023-06-14T02:30:29.321Z","dependency_job_id":null,"html_url":"https://github.com/CompeyDev/signals-rs","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/CompeyDev%2Fsignals-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CompeyDev%2Fsignals-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CompeyDev%2Fsignals-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CompeyDev%2Fsignals-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CompeyDev","download_url":"https://codeload.github.com/CompeyDev/signals-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248505928,"owners_count":21115354,"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":["lua","lua-signals","luau","luau-signals","rust","rust-library","signals","signals-rs"],"created_at":"2024-11-07T09:26:58.588Z","updated_at":"2026-03-16T17:37:09.741Z","avatar_url":"https://github.com/CompeyDev.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"left\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/CompeyDev/signals-rs/main/assets/signals-rs_banner_light.png#gh-light-mode-only\" width=\"50%\" \u003e\u003c/div\u003e\n\u003cdiv align=\"left\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/CompeyDev/signals-rs/main/assets/signals-rs_banner_dark.png#gh-dark-mode-only\" width=\"50%\" \u003e\u003c/div\u003e\n\nA lua(u)-inspired implementation of signals/events in rust.\n\nA signal is a global state switch which can be used as a gateway for conditional code execution. Signals can be activated by first \"connecting\" to them with a callback, then \"firing\" them to toggle their state.\n```rs\nlet mut some_signal = Signal::new();\n\nlet (connection, connection_id) = some_signal.connect(\u0026|_| println!(\"This signal has been fired, continuing...\"));\n\n// We can now fire this connection to execute its registered callback.\n// Do note that in a more complicated scenario with multiple connections \n// to a signal, a connection_id parameter must be passed.\nconnection.fire(None, None);\n\n// This \"disconnects\" from a signal and removes the registered callback, as it is no longer required.\nconnection.disconnect(Some(connection_id)); \n\n// Signals can be destroyed or dropped too.\nsome_signal.destroy();\n```\n\nSignals are especially useful as lightweight events for global state sync-ups.\n\n# Installation\nIn order to install signals-rs, first switch to a nightly channel (`rustup toolchain install nightly`) for your rust compiler and then you can add it as such to your dependencies section in `Cargo.toml`:\n\n```toml\n[dependencies]\nsignals_rs = { git = \"https://github.com/CompeyDev/signals-rs.git\", rev = \"8a650a1\" }\n```\n\n# Features\nAs of now, this crate consists 1 feature, namely `log`. This feature is opt-in and enables progress logging for various activities, classified into \"errors\", \"warns\", and \"info\" logs. Useful for debugging purposes.\n\nIt can be enabled as such:\n```toml\n[dependencies]\nsignals_rs = { git = \"https://github.com/CompeyDev/signals-rs.git\", rev = \"8a650a1\", features = [\"log\"] }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompeydev%2Fsignals-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompeydev%2Fsignals-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompeydev%2Fsignals-rs/lists"}