{"id":19491653,"url":"https://github.com/rudderlabs/rudder-sdk-rust","last_synced_at":"2025-04-25T19:32:20.096Z","repository":{"id":37689986,"uuid":"411319614","full_name":"rudderlabs/rudder-sdk-rust","owner":"rudderlabs","description":"Rust SDK for RudderStack - Open-source, warehouse-first Customer Data Pipeline and Segment-alternative. It collects and routes clickstream data and builds your customer data lake on your data warehouse.","archived":false,"fork":false,"pushed_at":"2024-07-25T16:33:29.000Z","size":85,"stargazers_count":4,"open_issues_count":2,"forks_count":7,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-20T19:43:49.193Z","etag":null,"topics":["analytics","cdp","customer-data","customer-data-pipeline","customer-data-platform","data-synchronization","market-analytics","product-analytics","rudderstack","rust","rust-lang","sdk","segment-alternative"],"latest_commit_sha":null,"homepage":"https://www.rudderstack.com","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rudderlabs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-28T14:37:34.000Z","updated_at":"2024-12-21T19:32:00.000Z","dependencies_parsed_at":"2024-07-25T10:29:59.080Z","dependency_job_id":"033d03a0-bbe1-4d07-a104-f7a309809af8","html_url":"https://github.com/rudderlabs/rudder-sdk-rust","commit_stats":{"total_commits":44,"total_committers":8,"mean_commits":5.5,"dds":"0.38636363636363635","last_synced_commit":"6a2c29ab187ec6684d6330533b92aff757409dbf"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudderlabs%2Frudder-sdk-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudderlabs%2Frudder-sdk-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudderlabs%2Frudder-sdk-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudderlabs%2Frudder-sdk-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rudderlabs","download_url":"https://codeload.github.com/rudderlabs/rudder-sdk-rust/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250882637,"owners_count":21502341,"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":["analytics","cdp","customer-data","customer-data-pipeline","customer-data-platform","data-synchronization","market-analytics","product-analytics","rudderstack","rust","rust-lang","sdk","segment-alternative"],"created_at":"2024-11-10T21:17:40.400Z","updated_at":"2025-04-25T19:32:19.705Z","avatar_url":"https://github.com/rudderlabs.png","language":"Rust","readme":"\u003cp align=\"center\"\u003e\u003ca href=\"https://rudderstack.com\"\u003e\u003cimg src=\"https://user-images.githubusercontent.com/59817155/126267034-ae9870b7-9137-4f45-be65-d621b055a972.png\" alt=\"RudderStack - Customer Data Platform for Developers\" height=\"50\"/\u003e\u003c/a\u003e\u003c/p\u003e\n\u003ch1 align=\"center\"\u003e\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\u003cb\u003eCustomer Data Platform for Developers\u003c/b\u003e\u003c/p\u003e\n\u003cbr/\u003e\n\n# About RudderStack\n\n[**RudderStack**](https://rudderstack.com/) is a customer data platform for developers. Our tooling makes it easy to deploy pipelines that collect customer data from every app, website and SaaS platform, then activate it in your warehouse and business tools.\n\n# RudderStack Rust SDK\n\n| The RudderStack Rust SDK is an analytics client to track events from your Rust application. Once enabled, the event requests hit the RudderStack servers. RudderStack then transforms and routes these events to your specified destination platforms. |\n| :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n\n\u003e Questions? Start a conversation on our [**Slack channel**][slack].\n\n\u003e For detailed documentation on the RudderStack Rust SDK, click [**here**](https://docs.rudderstack.com/stream-sources/rudderstack-sdk-integration-guides/rudderstack-rust-sdk).\n\n## Getting Started with Rust SDK\n\nInclude `rudderanalytics` as a dependency in your Rust application `Cargo.toml` file:\n\n```toml\n[dependencies]\nrudderanalytics = \"\u003clatest_version\u003e\"\n```\n\n## Initializing the RudderStack Client\n\n```rust\nuse rudderanalytics::client::RudderAnalytics;\nuse rudderanalytics::message::{Identify, Track, Page, Group, Screen, Alias, Batch, Message, BatchMessage};\n\nlet rudder_analytics = RudderAnalytics::load(\"YOUR_WRITE_KEY\".to_string(), \"YOUR_DATA_PLANE_URL\".to_string());\n```\n\n## Sending Events\n\nOnce the RudderStack client is initialized, you can use it to send your events. A sample call for track event is shown below:\n\n```rust\nuse serde_json::json;\n\nrudder_analytics.send(\u0026Message::Track(Track {\n    user_id: Some(\"sample_user_id\".to_string()),\n    event: \"Test Event\".to_owned(),\n    properties: Some(json!({\n        \"some property\": \"some value\",\n        \"some other property\": \"some other value\",\n    })),\n    ..Default::default()\n})).expect(\"Failed to send data to Rudderstack\");\n```\n\nFor more information on the supported calls, refer to the [**documentation**](https://docs.rudderstack.com/stream-sources/rudderstack-sdk-integration-guides/rudderstack-rust-sdk#sending-events-from-rudderstack).\n\n## Contribute\n\nWe would love to see you contribute to RudderStack. Get more information on how to contribute [**here**](CONTRIBUTING.md).\n\n## Contact Us\n\nFor more information on any of the sections covered in this readme, you can [**contact us**](mailto:%20docs@rudderstack.com) or start a conversation on our [**Slack**](https://resources.rudderstack.com/join-rudderstack-slack) channel.\n\n## Follow Us\n\n- [**RudderStack blog**][rudderstack-blog]\n- [**Slack**][slack]\n- [**Twitter**][twitter]\n- [**LinkedIn**][linkedin]\n- [**dev.to**][devto]\n- [**Medium**][medium]\n- [**YouTube**][youtube]\n- [**HackerNews**][hackernews]\n- [**Product Hunt**][producthunt]\n\n\u003c!----variables----\u003e\n\n[slack]: https://rudderstack.com/join-rudderstack-slack-community\n[twitter]: https://twitter.com/rudderstack\n[linkedin]: https://www.linkedin.com/company/rudderlabs/\n[devto]: https://dev.to/rudderstack\n[medium]: https://rudderstack.medium.com/\n[youtube]: https://www.youtube.com/channel/UCgV-B77bV_-LOmKYHw8jvBw\n[rudderstack-blog]: https://rudderstack.com/blog/\n[hackernews]: https://news.ycombinator.com/item?id=21081756\n[producthunt]: https://www.producthunt.com/posts/rudderstack\n[mit_license]: https://opensource.org/licenses/MIT\n[agplv3_license]: https://www.gnu.org/licenses/agpl-3.0-standalone.html\n[sspl_license]: https://www.mongodb.com/licensing/server-side-public-license\n[config-generator]: https://github.com/rudderlabs/config-generator\n[config-generator-section]: https://github.com/rudderlabs/rudder-server/blob/master/README.md#rudderstack-config-generator\n[rudder-logo]: https://repository-images.githubusercontent.com/197743848/b352c900-dbc8-11e9-9d45-4deb9274101f\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frudderlabs%2Frudder-sdk-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frudderlabs%2Frudder-sdk-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frudderlabs%2Frudder-sdk-rust/lists"}