{"id":18417355,"url":"https://github.com/stellar/rs-stellar-xdr","last_synced_at":"2026-04-01T20:25:03.901Z","repository":{"id":37046452,"uuid":"484131470","full_name":"stellar/rs-stellar-xdr","owner":"stellar","description":"Rust lib for Stellar XDR.","archived":false,"fork":false,"pushed_at":"2026-03-30T05:58:46.000Z","size":12656,"stargazers_count":25,"open_issues_count":39,"forks_count":36,"subscribers_count":12,"default_branch":"main","last_synced_at":"2026-03-30T07:52:11.164Z","etag":null,"topics":[],"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/stellar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-04-21T16:45:40.000Z","updated_at":"2026-03-27T01:36:33.000Z","dependencies_parsed_at":"2024-02-01T19:43:44.719Z","dependency_job_id":"4211a271-43ae-4fc0-b3ef-b7eafd1be185","html_url":"https://github.com/stellar/rs-stellar-xdr","commit_stats":{"total_commits":327,"total_committers":12,"mean_commits":27.25,"dds":"0.43730886850152906","last_synced_commit":"715003372ea6380044b5a4a02907ff73e56ae9e7"},"previous_names":[],"tags_count":40,"template":false,"template_full_name":null,"purl":"pkg:github/stellar/rs-stellar-xdr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellar%2Frs-stellar-xdr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellar%2Frs-stellar-xdr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellar%2Frs-stellar-xdr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellar%2Frs-stellar-xdr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stellar","download_url":"https://codeload.github.com/stellar/rs-stellar-xdr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellar%2Frs-stellar-xdr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31291570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-06T04:09:03.284Z","updated_at":"2026-04-01T20:25:03.894Z","avatar_url":"https://github.com/stellar.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stellar-xdr\n\nLibrary and CLI containing types and functionality for working with Stellar\nXDR.\n\nTypes are generated from XDR definitions hosted at [stellar/stellar-xdr]\nusing the Rust XDR generator in `xdr-generator-rust/`.\n\n[stellar/stellar-xdr]: https://github.com/stellar/stellar-xdr\n\n## Usage\n\n### Library\nTo use the library, include in your toml:\n\n```toml\nstellar-xdr = { version = \"...\", default-features = true, features = [] }\n```\n\n#### Features\n\nThe crate has several features, tiers of functionality, and ancillary\nfunctionality.\n\nDefault features: `std`.\n\nTiers of functionality:\n\n1. `std` – The std feature provides all functionality (types, encode,\ndecode), and is the default feature set.\n2. `alloc` – The alloc feature uses `Box` and `Vec` types for recursive\nreferences and arrays, and is automatically enabled if the std feature is\nenabled. The default global allocator is used. Support for a custom\nallocator will be added in [#39]. No encode or decode capability exists,\nonly types. Encode and decode capability will be added in [#46].\n3. If std or alloc are not enabled recursive and array types requires static\nlifetime values. No encode or decode capability exists. Encode and decode\ncapability will be added in [#47].\n\n[#39]: https://github.com/stellar/rs-stellar-xdr/issues/39\n[#46]: https://github.com/stellar/rs-stellar-xdr/issues/46\n[#47]: https://github.com/stellar/rs-stellar-xdr/issues/47\n\nAncillary functionality:\n\n1. `base64` – Enables support for base64 encoding and decoding.\n2. `serde` – Enables support for serializing and deserializing types with\nthe serde crate.\n3. `serde_json` – Enables support for built-in functionality specifically\nfor serde_json. Often not required to use the types with serde_json, and\nonly necessary to use utility functions that depend on serde_json.\n4. `arbitrary` – Enables support for interop with the arbitrary crate.\n5. `hex` – Enables support for hex in string representations of some types.\nAutomatically enabled when serde is enabled.\n6. `schemars` – Enables support for JSON Schema generation. (Experimental)\n\nFeatures marked experimental may disappear at anytime, see breaking changes\nat anytime, or and may be minimal implementations instead of complete.\n\n### CLI\n\nTo use the CLI:\n\n```console\ncargo install --locked stellar-xdr --version ... --features cli\n```\n\n#### Examples\n\nParse a `TransactionEnvelope`:\n```console\nstellar-xdr decode --type TransactionEnvelope \u003c\u003c -\nAAAAA...\n-\n```\n\nParse a `ScSpecEntry` stream from a contract:\n```console\nstellar-xdr decode --type ScSpecEntry --input stream-base64 --output json-formatted \u003c\u003c -\nAAAAA...\n-\n```\n\nParse a `BucketEntry` framed stream from a bucket file:\n```console\nstellar-xdr decode --type BucketEntry --input stream-framed --output json-formatted bucket.xdr\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstellar%2Frs-stellar-xdr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstellar%2Frs-stellar-xdr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstellar%2Frs-stellar-xdr/lists"}