Commit Graph
51 Commits
Author SHA1 Message Date
桥下红药 bcc166c53b fix(jni): stopServer 改为后台线程释放 Runtime,避免阻塞 JNI 调用线程
- 新增 take_handle: 转移 ServerHandle 所有权,替代 handle_ref+destroy_handle 两步调用
- 新增 shutdown_and_destroy_in_background: 先发关闭信号,再将整个 ServerHandle(含 tokio Runtime)移入专用后台线程 drop,避免 Runtime::drop 阻塞调用 stopServer 的 Java 线程
- jni_shutdown_and_release 改用 take_handle + shutdown_and_destroy_in_background
- 保留 stop/destroy_handle 供扩展,标注 #[allow(dead_code)] 并补充注释

Made-with: Cursor
2026-03-14 14:42:23 +08:00
桥下红药 e4740f5fff feat(jni): onMetadataFetch, stop=shutdown+release, DhtCrawler OO API
- JNI: register on_metadata_fetch -> DhtListener.onMetadataFetch
- stopServer only: shutdown + destroy (remove destroyServer)
- Java: DhtCrawler.createServer/start/stop, package-private DhtCrawlerJni
- gitignore examples-jni build/.gradle

Made-with: Cursor
2026-03-13 19:48:46 +08:00
桥下红药 2746791205 fix: 移除 MUSL 构建、Windows 用 PowerShell 打包、JNI 未使用代码去警告
Made-with: Cursor
2026-03-13 03:01:16 +08:00
桥下红药 b1bc2bedbe ci: Windows GNU 原生构建、CI 用 gradlew、Shadow 升级 9.0.2
Made-with: Cursor
2026-03-13 02:51:54 +08:00
桥下红药 316a98a939 fix(jni): 使用 com.gradleup.shadow 并添加 Gradle Wrapper 便于本机构建
Made-with: Cursor
2026-03-13 02:44:58 +08:00
桥下红药 1eae4a8dbb fix(ci): 升级 Shadow 插件至 8.3.10 以兼容 Gradle 9
Made-with: Cursor
2026-03-13 02:38:13 +08:00
桥下红药 b32abf8408 ci: 构建时加 --lib 以产出 JNI cdylib (libdht_crawler.so)
Made-with: Cursor
2026-03-13 02:33:44 +08:00
桥下红药 3b433529c5 ci: Java JAR 构建使用 JDK 17,满足 Gradle 9.x 要求
Made-with: Cursor
2026-03-13 02:31:46 +08:00
桥下红药 b011800b1d refactor: 将 JNI Java 示例从 jni/java 移至根目录 examples-jni
- 将 jni/java/ 整体迁移到 examples-jni/
- 更新 release.yml 中 JAR 构建路径为 examples-jni
- 更新 build.gradle 默认 lib.path 为 ../target/release
- 更新 README 与示例注释中的路径说明

Made-with: Cursor
2026-03-13 02:24:25 +08:00
桥下红药 6e7c6f02e4 jni 2026-03-13 02:15:50 +08:00
桥下红药 2ab9103e5b 性能优化 2026-03-12 21:43:18 +08:00
桥下红药 76c1998ed9 update 2026-03-12 21:26:37 +08:00
桥下红药andGitHub 6cbeeb9c08 Merge pull request #1 from drHuangMHT/socket-provider
feat: allow binding of multiple addresses(WIP)
2026-02-13 18:06:40 +08:00
drHuangMHT 9e73344bab naming and code organization 2026-02-04 22:08:39 +08:00
drHuangMHT 62fc1bc752 allow binding of multiple addresses 2026-02-04 21:01:45 +08:00
桥下红药 f7e44114c0 update 2026-01-27 22:55:20 +08:00
桥下红药 ded86baf13 update 2026-01-18 23:31:43 +08:00
桥下红药andGitHub 3e53636e37 Update README.md 2026-01-18 23:31:23 +08:00
桥下红药 0e00aa9dae update 2026-01-18 23:08:41 +08:00
桥下红药 8b1cb201cb update 2026-01-18 23:01:34 +08:00
桥下红药 ddb7e3c64f update Cargo.toml 2026-01-18 22:59:17 +08:00
桥下红药 ec8acbc5e7 修复示例cross编译aws-lc-sys的BUG问题 2026-01-18 22:55:45 +08:00
桥下红药 d38cb835d4 优化部分语法警告 2026-01-18 17:33:29 +08:00
桥下红药 e89f814895 优化引入和文档 2026-01-18 17:00:10 +08:00
桥下红药 60f79f7487 更新统计埋点 2026-01-18 15:16:17 +08:00
桥下红药 2b7542c09d 修复优雅关闭 2026-01-17 19:57:21 +08:00
桥下红药 f41c45a36b 优化内存泄露 2026-01-17 19:06:05 +08:00
桥下红药 217a934980 删除注释,优化部分clone使用 2026-01-17 18:22:36 +08:00
桥下红药 ab4247a6e8 update 2026-01-17 17:27:36 +08:00
桥下红药 eeb39cf7a0 update 2026-01-17 17:27:14 +08:00
桥下红药 192dad7519 update 2026-01-17 17:25:22 +08:00
桥下红药 4dfb706073 update 2026-01-16 22:28:57 +08:00
桥下红药 c35b87cb5b update 2026-01-16 20:46:04 +08:00
桥下红药 d839476128 update 2026-01-16 20:44:13 +08:00
桥下红药 eb8ce30154 update 2026-01-16 20:38:39 +08:00
桥下红药 c875f5b14d update version 2026-01-16 20:32:04 +08:00
桥下红药andGitHub 71f67a0a2b Update README.md 2026-01-16 20:25:41 +08:00
桥下红药andGitHub 8a1d8d16c8 Update README.md 2026-01-16 20:25:29 +08:00
桥下红药 bfe76cc632 Bump version to 0.0.2 2026-01-16 20:02:21 +08:00
桥下红药 b7458b4d21 Update README: reference examples and update build command 2026-01-16 20:00:52 +08:00
桥下红药 85121ba9f4 update 2026-01-16 19:53:51 +08:00
桥下红药 31982e9342 Add README.md 2026-01-16 19:47:23 +08:00
桥下红药 c356926d69 Prepare for crates.io release v0.0.1 2026-01-16 19:46:51 +08:00
桥下红药 cb6f005967 init 2026-01-16 01:35:33 +08:00
桥下红药 9aeca88f71 init 2026-01-16 01:32:04 +08:00
桥下红药 e7fa5eec7a init 2026-01-16 01:20:59 +08:00
桥下红药 7453571ecf init 2026-01-16 01:17:03 +08:00
桥下红药 03ebbcc5e0 Merge remote-tracking branch 'origin/master' 2025-12-22 21:51:35 +08:00
桥下红药 4bb30a5624 init 2025-12-22 21:49:30 +08:00
桥下红药andGitHub c6b361e7e1 Create rust.yml 2025-12-22 21:34:33 +08:00