{"id":22588799,"url":"https://github.com/wolframresearch/wolfram-expr-rs","last_synced_at":"2025-04-10T21:45:50.051Z","repository":{"id":40275207,"uuid":"444536666","full_name":"WolframResearch/wolfram-expr-rs","owner":"WolframResearch","description":"Representing Wolfram Language expressions in Rust.","archived":false,"fork":false,"pushed_at":"2023-12-10T01:11:15.000Z","size":150,"stargazers_count":17,"open_issues_count":7,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-10T21:45:39.077Z","etag":null,"topics":["rust","rust-crate","wolfram-language"],"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/WolframResearch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/CONTRIBUTING.md","funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-04T19:17:35.000Z","updated_at":"2025-01-02T04:24:57.000Z","dependencies_parsed_at":"2023-02-18T11:05:54.655Z","dependency_job_id":null,"html_url":"https://github.com/WolframResearch/wolfram-expr-rs","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WolframResearch%2Fwolfram-expr-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WolframResearch%2Fwolfram-expr-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WolframResearch%2Fwolfram-expr-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WolframResearch%2Fwolfram-expr-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WolframResearch","download_url":"https://codeload.github.com/WolframResearch/wolfram-expr-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248305877,"owners_count":21081562,"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":["rust","rust-crate","wolfram-language"],"created_at":"2024-12-08T08:11:08.634Z","updated_at":"2025-04-10T21:45:50.032Z","avatar_url":"https://github.com/WolframResearch.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wolfram-expr\n\n[![Crates.io](https://img.shields.io/crates/v/wolfram-expr.svg)](https://crates.io/crates/wolfram-expr)\n![License](https://img.shields.io/crates/l/wolfram-expr.svg)\n[![Documentation](https://docs.rs/wolfram-expr/badge.svg)](https://docs.rs/wolfram-expr)\n\n\u003ch4\u003e\n  \u003ca href=\"https://docs.rs/wolfram-expr\"\u003eAPI Documentation\u003c/a\u003e\n  \u003cspan\u003e | \u003c/span\u003e\n  \u003ca href=\"https://github.com/WolframResearch/wolfram-expr-rs/blob/master/docs/CHANGELOG.md\"\u003eChangelog\u003c/a\u003e\n  \u003cspan\u003e | \u003c/span\u003e\n  \u003ca href=\"https://github.com/WolframResearch/wolfram-expr-rs/blob/master/docs/CONTRIBUTING.md\"\u003eContributing\u003c/a\u003e\n\u003c/h4\u003e\n\nEfficient and ergonomic representation of Wolfram expressions in Rust.\n\n## Examples\n\nConstruct the expression `{1, 2, 3}`:\n\n```rust\nuse wolfram_expr::{Expr, Symbol};\n\nlet expr = Expr::normal(Symbol::new(\"System`List\"), vec![\n    Expr::from(1),\n    Expr::from(2),\n    Expr::from(3)\n]);\n```\n\nPattern match over different expression variants:\n\n```rust\nuse wolfram_expr::{Expr, ExprKind};\n\nlet expr = Expr::from(\"some arbitrary expression\");\n\nmatch expr.kind() {\n    ExprKind::Integer(1) =\u003e println!(\"got 1\"),\n    ExprKind::Integer(n) =\u003e println!(\"got {}\", n),\n    ExprKind::Real(_) =\u003e println!(\"got a real number\"),\n    ExprKind::String(s) =\u003e println!(\"got string: {}\", s),\n    ExprKind::Symbol(sym) =\u003e println!(\"got symbol named {}\", sym.symbol_name()),\n    ExprKind::Normal(e) =\u003e println!(\n        \"got expr with head {} and length {}\",\n        e.head(),\n        e.elements().len()\n    ),\n}\n```\n\n## Related Links\n\n#### Related crates\n\n* [`wolfram-library-link`][wolfram-library-link] — author libraries that can be\n  dynamically loaded by the Wolfram Language.\n* [`wstp`][wstp] — bindings to the Wolfram Symbolic Transport Protocol, used for passing\n  arbitrary Wolfram expressions between programs.\n* [`wolfram-app-discovery`][wolfram-app-discovery] — utility for locating local\n  installations of Wolfram applications and the Wolfram Language.\n\n\n[wstp]: https://github.com/WolframResearch/wstp-rs\n[wolfram-app-discovery]: https://crates.io/crates/wolfram-app-discovery\n[wolfram-library-link]: https://github.com/WolframResearch/wolfram-library-link-rs\n\n## License\n\n Licensed under either of\n\n  * Apache License, Version 2.0\n    ([LICENSE-APACHE](LICENSE-APACHE) or \u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e)\n  * MIT license\n    ([LICENSE-MIT](LICENSE-MIT) or \u003chttp://opensource.org/licenses/MIT\u003e)\n\n at your option.\n\n ## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n\nSee [CONTRIBUTING.md](./docs/CONTRIBUTING.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwolframresearch%2Fwolfram-expr-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwolframresearch%2Fwolfram-expr-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwolframresearch%2Fwolfram-expr-rs/lists"}