{"id":28430647,"url":"https://github.com/apimeister/tibco-ems-rs","last_synced_at":"2025-07-26T19:11:29.414Z","repository":{"id":52932637,"uuid":"312681425","full_name":"apimeister/tibco-ems-rs","owner":"apimeister","description":"A rust library build around the Tibco EMS c-library.","archived":false,"fork":false,"pushed_at":"2025-03-24T07:38:03.000Z","size":238,"stargazers_count":5,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-04T00:24:06.655Z","etag":null,"topics":["ems","tibco","tibco-ems"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/tibco_ems","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/apimeister.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}},"created_at":"2020-11-13T20:53:53.000Z","updated_at":"2024-11-18T07:37:54.000Z","dependencies_parsed_at":"2024-11-18T08:40:32.752Z","dependency_job_id":null,"html_url":"https://github.com/apimeister/tibco-ems-rs","commit_stats":{"total_commits":111,"total_committers":4,"mean_commits":27.75,"dds":0.036036036036036,"last_synced_commit":"9a4259219115e5bc4d367c822b0f08d05018da53"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/apimeister/tibco-ems-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apimeister%2Ftibco-ems-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apimeister%2Ftibco-ems-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apimeister%2Ftibco-ems-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apimeister%2Ftibco-ems-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apimeister","download_url":"https://codeload.github.com/apimeister/tibco-ems-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apimeister%2Ftibco-ems-rs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265507529,"owners_count":23778973,"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":["ems","tibco","tibco-ems"],"created_at":"2025-06-05T14:07:39.697Z","updated_at":"2025-07-26T19:11:29.408Z","avatar_url":"https://github.com/apimeister.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tibco-ems-rs\n\n[![Latest Version](https://img.shields.io/crates/v/tibco_ems.svg)](https://crates.io/crates/tibco_ems)\n[![codecov](https://codecov.io/gh/apimeister/tibco-ems-rs/branch/main/graph/badge.svg?token=NVYPCNKU0M)](https://codecov.io/gh/apimeister/tibco-ems-rs)  \nA high-level API for the Tibco EMS C library\n\n## Build\n\nTo build this crate, the TIBCO EMS C library must either be in the LD_LIBRARY_PATH or alternatively a EMS_HOME environment variable must be set.\n\nPlease check the [CHANGELOG](./CHANGELOG.md) when upgrading.\n\n## Examples\n\nSending a text message to a queue.\n\n```rust\nuse tibco_ems::Destination;\nuse tibco_ems::TextMessage;\n\nfn main() {\n  let url = \"tcp://localhost:7222\";\n  let user=\"admin\";\n  let password=\"admin\";\n\n  let connection = tibco_ems::connect(url,user,password).unwrap();\n  let session = connection.session().unwrap();\n\n  let msg = TextMessage{\n    body:\"hallo welt\".to_string(),\n    ..Default::default()\n  };\n\n  let destination = Destination::Queue(\"myqueue\".to_string());\n  \n  let _ignore = session.send_message(\u0026destination, msg);\n}\n```\n\nReceiving a text message from a queue.\n\n```rust\nuse tibco_ems::Destination;\nuse tibco_ems::Message;\n\nfn main() {\n  let url = \"tcp://localhost:7222\";\n  let user=\"admin\";\n  let password=\"admin\";\n\n  let connection = tibco_ems::connect(url,user,password).unwrap();\n  let session = connection.session().unwrap();\n\n  let destination = Destination::Queue(\"myqueue\".to_string());\n  let consumer = session.queue_consumer(\u0026destination, None).unwrap();\n  \n  println!(\"waiting 10 seconds for a message\");\n  let msg_result = consumer.receive_message(Some(10000));\n\n  match msg_result {\n    Ok(result_value) =\u003e {\n      match result_value {\n        Some(message) =\u003e {\n          match \u0026message {\n            Message::TextMessage(text_message) =\u003e{\n              println!(\"received text message\");\n              println!(\"content: {}\", text_message.body);\n            },\n            _ =\u003e {\n              println!(\"unknown type\");\n            }\n          }    \n        },\n        None =\u003e{\n          println!(\"no message returned\");\n        },\n      }\n    },\n    Err(status) =\u003e {\n      println!(\"returned status: {:?}\",status);\n    }\n  }\n}\n```\n\nMore examples can be found in the examples directory.\n\n## License\n\ntibco-ems-rs is licensed under [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0) [LICENSE](LICENSE).  \nTIBCO Enterprise Messaging Service, and all related components therein are property of TIBCO Software, and are not provided with this software package. Refer to your own TIBCO License terms for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapimeister%2Ftibco-ems-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapimeister%2Ftibco-ems-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapimeister%2Ftibco-ems-rs/lists"}