{"id":18823089,"url":"https://github.com/toad-lib/toad-java","last_synced_at":"2026-05-01T04:35:34.477Z","repository":{"id":151064166,"uuid":"621573713","full_name":"toad-lib/toad-java","owner":"toad-lib","description":"java coap runtime","archived":false,"fork":false,"pushed_at":"2023-04-26T14:48:33.000Z","size":334,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-12-30T04:19:43.910Z","etag":null,"topics":["coap","fast","iot","networking","scala"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/toad-lib.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-03-31T00:08:26.000Z","updated_at":"2024-07-12T05:04:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"2e234d82-d3fb-493b-a155-8049285bf370","html_url":"https://github.com/toad-lib/toad-java","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toad-lib%2Ftoad-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toad-lib%2Ftoad-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toad-lib%2Ftoad-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toad-lib%2Ftoad-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toad-lib","download_url":"https://codeload.github.com/toad-lib/toad-java/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239758899,"owners_count":19692041,"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":["coap","fast","iot","networking","scala"],"created_at":"2024-11-08T00:52:40.353Z","updated_at":"2026-01-19T07:30:18.236Z","avatar_url":"https://github.com/toad-lib.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## toad-java\n\nThis repo contains the Java \u0026 Scala APIs for the [toad](https://github.com/toad-lib/toad) CoAP network runtime.\n\n### Developing\n#### Developing - Clone\n```sh\n\u003e git clone git@github.com:toad-lib/toad-java toad-java\n\u003e cd toad-java\n```\n\n#### Developing - Tooling\n##### Developing - Tooling - System\nIf on a minimal os (ex. bare debian image) install if not present:\n- a C compiler, examples:\n   - [debian `apt install gcc`](https://packages.debian.org/stable/devel/gcc)\n   - [macos `brew install gcc`](https://formulae.brew.sh/formula/gcc)\n   - [macos - xcode commandline tools](https://developer.apple.com/xcode/resources/)\n- openssl, examples:\n   - [debian `apt install libssl-dev`](https://packages.debian.org/stable/devel/gcc)\n   - [macos `brew install openssl`](https://formulae.brew.sh/formula/gcc)\n- (debian only) `apt install pkg-config`\n\n##### Developing - Tooling - asdf\nthis repo is configured to use asdf for managing versions of rust, the JVM, and coursier\nused by this project.\n\nTo use it follow the [asdf installation guide](https://asdf-vm.com/guide/getting-started.html#official-download)\nthen run the following in bash or zsh in the directory you cloned the repo to:\n\n```sh\n\u003e asdf install\n\u003e asdf plugin add java     # skip if you have system install of JDK version 20\n\u003e asdf plugin add rust     # skip if you have system install of Rust\n\u003e asdf plugin add coursier # skip if you have system install of coursier\n```\n\n##### Developing - Tooling - Non-asdf\nNOTE: skip this section if you are using asdf for tooling version management.\n\n- install [openjdk](https://jdk.java.net/20/) _or equivalent_ version 20 or higher\n  - after installing, ensure that `$JAVA_HOME` correctly refers to JDK 20 (`java -version` should output `openjdk version \"20\" 202x-xx-xx`)\n- install [coursier](https://get-coursier.io/docs/cli-install)\n- install [rust](https://rustup.rs)\n\n##### Developing - Tooling - sbt\nAfter following the above steps, add coursier-installed binaries to your PATH, ex with:\n```sh\n\u003e echo 'export PATH=$PATH:/root/.local/share/coursier/bin' \u003e\u003e ~/.zshrc\n```\n\nThen install `sbt`\n```sh\n\u003e coursier install sbt\n```\n\n#### Developing - Rust\nThere is a non-trivial amount of code necessary to support the interop between\n`toad` (a rust library) and `toad-java` (a java project).\n\nThere is a published library [`toad-jni`](https://github.com/toad-lib/toad/tree/main/toad-jni) which contains\ngeneral abstractions that are useful for this project and may be useful to others.\n\nSeparately is a rust project in this repository, `./glue/`.\nThis is *not* a published crate and is instead source code for a\nshared library specifically to implement native java methods in this java project.\n\nDevelopment tips specific to the glue lib can be found in `./glue/README.md`.\n\n#### Developing - Build\nthe sbt command `compile` (`sbt compile` or `compile` in the `sbt` shell)\nis the only required build step for this project.\n\n`sbt compile` can be broken into the following steps:\n 1. run `javac` to generate C headers for java files with `native` function requirements\n 1. dump the headers into `./target/native/debug/`\n    - _(dual purpose; a native interface available to manually cross-check against the hard rust implementation, as well as providing an interface to the built library artifact)_\n 1. run `cargo build` within `./glue/` (builds to `./target/native/`)\n 1. run `cargo test` within `./glue/`\n 1. build java \u0026 scala sources to `./target/`\n\n### Tests\ntodo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoad-lib%2Ftoad-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoad-lib%2Ftoad-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoad-lib%2Ftoad-java/lists"}