{"id":31756766,"url":"https://github.com/threefoldtech/zinit-client","last_synced_at":"2026-01-20T17:51:28.635Z","repository":{"id":286438831,"uuid":"961404214","full_name":"threefoldtech/zinit-client","owner":"threefoldtech","description":"A Rust client library for interacting with the Zinit https://github.com/threefoldtech/zinit service manager.","archived":false,"fork":false,"pushed_at":"2025-07-08T10:51:24.000Z","size":177,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"development","last_synced_at":"2025-09-20T00:34:27.227Z","etag":null,"topics":["init","service","service-manager","system-manager"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/threefoldtech.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2025-04-06T13:01:49.000Z","updated_at":"2025-07-08T10:51:27.000Z","dependencies_parsed_at":"2025-07-08T07:40:44.721Z","dependency_job_id":"421bfcb0-d0a0-46dc-9120-953c0ef5da43","html_url":"https://github.com/threefoldtech/zinit-client","commit_stats":null,"previous_names":["threefoldtech/zinit-client-rs"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/threefoldtech/zinit-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threefoldtech%2Fzinit-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threefoldtech%2Fzinit-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threefoldtech%2Fzinit-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threefoldtech%2Fzinit-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/threefoldtech","download_url":"https://codeload.github.com/threefoldtech/zinit-client/tar.gz/refs/heads/development","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threefoldtech%2Fzinit-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001979,"owners_count":26083243,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["init","service","service-manager","system-manager"],"created_at":"2025-10-09T19:23:39.353Z","updated_at":"2025-10-09T19:23:41.421Z","avatar_url":"https://github.com/threefoldtech.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zinit Client\n\n[![Crates.io](https://img.shields.io/crates/v/zinit-client.svg)](https://crates.io/crates/zinit-client)\n[![Documentation](https://docs.rs/zinit-client/badge.svg)](https://docs.rs/zinit-client)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nA Rust client library for the [Zinit](https://github.com/threefoldtech/zinit) service manager.\n\n## Features\n\n- **Zero Configuration**: Automatically detects server version and protocol\n- **Complete API**: All Zinit operations (list, start, stop, create, delete, etc.)\n- **Async/Await**: Built on Tokio for high performance\n- **Type Safe**: Strongly typed service states and responses\n- **Error Handling**: Comprehensive error types with helpful messages\n- **Backward Compatible**: Works with legacy Zinit installations\n\n## Installation\n\nAdd this to your `Cargo.toml`:\n\n```toml\n[dependencies]\nzinit-client = \"0.4.0\"\n```\n\n## Quick Start\n\n```rust\nuse zinit_client::ZinitClient;\n\n#[tokio::main]\nasync fn main() -\u003e Result\u003c(), Box\u003cdyn std::error::Error\u003e\u003e {\n    let client = ZinitClient::new(\"/var/run/zinit.sock\");\n\n    // List all services\n    let services = client.list().await?;\n    println!(\"Services: {:?}\", services);\n\n    // Start a service\n    client.start(\"my-service\").await?;\n\n    // Get service status\n    let status = client.status(\"my-service\").await?;\n    println!(\"Status: {:?}\", status);\n\n    Ok(())\n}\n```\n\n## API Overview\n\n### Service Management\n\n```rust\n// List all services\nlet services = client.list().await?;\n\n// Service lifecycle\nclient.start(\"service-name\").await?;\nclient.stop(\"service-name\").await?;\nclient.restart(\"service-name\").await?;\n\n// Get detailed status\nlet status = client.status(\"service-name\").await?;\n\n// Create/delete services (if supported by server)\nclient.create_service(\"name\", config).await?;\nclient.delete_service(\"name\").await?;\n```\n\n## Examples\n\nRun the demo to see the universal interface in action:\n\n```bash\ncargo run --example \u003cexample_name\u003e \u003csock_path\u003e\n```\n\n## Documentation\n\nFor detailed API documentation, visit [docs.rs/zinit-client](https://docs.rs/zinit-client).\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthreefoldtech%2Fzinit-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthreefoldtech%2Fzinit-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthreefoldtech%2Fzinit-client/lists"}