1 # Copyright 2023-2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 # Autogenerated by pycargoebuild 0.13.2
24 android_system_properties@0.1.5
38 async-compression@0.4.6
40 async-stream-impl@0.3.5
44 asynchronous-codec@0.7.0
71 bounded-vec-deque@0.1.1
72 brotli-decompressor@2.5.1
79 c2rust-bitfields-derive@0.18.0
80 c2rust-bitfields@0.18.0
88 chacha20poly1305@0.10.1
103 concurrent-queue@2.4.0
106 console-subscriber@0.2.0
108 constant_time_eq@0.3.0
110 core-foundation-sys@0.8.6
111 core-foundation@0.9.4
116 crossbeam-channel@0.5.11
117 crossbeam-deque@0.8.5
118 crossbeam-epoch@0.9.18
119 crossbeam-queue@0.3.11
120 crossbeam-utils@0.8.19
126 curve25519-dalek-derive@0.1.1
127 curve25519-dalek@4.1.1
140 derive-adhoc-macros@0.7.3
141 derive-adhoc-macros@0.8.1
144 derive_builder_core_fork_arti@0.11.2
145 derive_builder_fork_arti@0.11.2
146 derive_builder_macro_fork_arti@0.11.2
148 dhcproto-macros@0.1.0
164 elliptic-curve@0.13.8
168 enum-ordinalize@3.1.15
174 fallible-iterator@0.3.0
175 fallible-streaming-iterator@0.1.9
183 foreign-types-macros@0.2.3
184 foreign-types-shared@0.3.1
186 form_urlencoded@1.2.1
193 futures-channel@0.3.30
195 futures-executor@0.3.30
198 futures-rustls@0.25.1
226 hickory-client@0.24.0
228 hickory-resolver@0.24.0
229 hickory-server@0.24.0
233 hostname-validator@1.1.1
238 http-range-header@0.4.0
243 humantime-serde@1.1.1
250 iana-time-zone-haiku@0.1.2
251 iana-time-zone@0.1.59
262 integer-encoding@3.0.4
266 ip_network_table-deps-treebitmap@0.5.0
267 ip_network_table@0.2.0
287 libsqlite3-sys@0.27.0
288 linked-hash-map@0.5.6
293 lru_time_cache@0.11.11
308 minimal-lexical@0.2.1
312 mockall_derive@0.12.1
314 network-interface@1.1.1
327 num_enum_derive@0.7.2
333 opentelemetry-http@0.11.0
334 opentelemetry-jaeger-propagator@0.1.0
335 opentelemetry-jaeger@0.21.0
336 opentelemetry-otlp@0.15.0
337 opentelemetry-proto@0.5.0
338 opentelemetry-semantic-conventions@0.14.0
340 opentelemetry_sdk@0.22.1
351 parking_lot_core@0.8.6
352 parking_lot_core@0.9.9
355 peeking_take_while@0.1.2
357 percent-encoding@2.3.1
362 pin-project-internal@1.1.3
363 pin-project-lite@0.2.13
370 plotters-backend@0.3.5
378 predicates-core@1.0.6
379 predicates-tree@1.0.9
384 proc-macro-crate@1.3.1
385 proc-macro-crate@2.0.0
386 proc-macro-crate@3.1.0
387 proc-macro-error-attr@1.0.4
388 proc-macro-error@1.0.4
409 regex-automata@0.1.10
422 rustc-demangle@0.1.23
426 rustls-native-certs@0.6.3
428 rustls-pki-types@1.2.0
429 rustls-webpki@0.101.7
430 rustls-webpki@0.102.2
437 sanitize-filename@0.5.0
442 security-framework-sys@2.9.1
443 security-framework@2.9.2
451 serde_path_to_error@0.1.15
453 serde_urlencoded@0.7.1
455 serde_with_macros@3.4.0
460 shadowsocks-crypto@0.5.4
465 signal-hook-registry@1.4.1
481 stable_deref_trait@1.2.0
482 static_assertions@1.1.0
499 thiserror-impl@1.0.57
511 tokio-io-timeout@1.2.0
517 tokio-tungstenite@0.21.0
528 tor-async-utils@0.1.5
529 tor-basic-utils@0.8.0
547 tor-log-ratelim@0.3.0
555 tor-socksproto@0.10.0
561 tracing-appender@0.2.3
562 tracing-attributes@0.1.27
565 tracing-opentelemetry@0.23.0
567 tracing-subscriber@0.3.18
568 tracing-test-macro@0.2.4
572 trust-dns-proto@0.22.0
575 typed-index-collections@3.1.0
580 unicode-normalization@0.1.22
583 unsafe-libyaml@0.2.10
590 uuid-macro-internal@1.7.0
600 wasi@0.10.2+wasi-snapshot-preview1
601 wasi@0.11.0+wasi-snapshot-preview1
602 wasm-bindgen-backend@0.2.90
603 wasm-bindgen-macro-support@0.2.90
604 wasm-bindgen-macro@0.2.90
605 wasm-bindgen-shared@0.2.90
613 winapi-i686-pc-windows-gnu@0.4.0
615 winapi-x86_64-pc-windows-gnu@0.4.0
621 windows-targets@0.48.5
622 windows-targets@0.52.0
624 windows_aarch64_gnullvm@0.48.5
625 windows_aarch64_gnullvm@0.52.0
626 windows_aarch64_msvc@0.48.5
627 windows_aarch64_msvc@0.52.0
628 windows_i686_gnu@0.48.5
629 windows_i686_gnu@0.52.0
630 windows_i686_msvc@0.48.5
631 windows_i686_msvc@0.52.0
632 windows_x86_64_gnu@0.48.5
633 windows_x86_64_gnu@0.52.0
634 windows_x86_64_gnullvm@0.48.5
635 windows_x86_64_gnullvm@0.52.0
636 windows_x86_64_msvc@0.48.5
637 windows_x86_64_msvc@0.52.0
645 zerocopy-derive@0.7.32
650 zstd-sys@2.0.9+zstd.1.5.5
654 declare -A GIT_CRATES
=(
655 [boringtun
]='https://github.com/cloudflare/boringtun;f672bb6c1e1e371240a8d151f15854687eb740bb;boringtun-%commit%/boringtun'
656 [netstack-lwip
]='https://github.com/Watfaq/netstack-lwip;2817bf82740e04bbee6b7bf1165f55657a6ed163;netstack-lwip-%commit%'
657 [tun
]='https://github.com/Watfaq/rust-tun;8f7568190f1200d3e272ca534baf8d1578147e18;rust-tun-%commit%'
660 inherit cargo systemd
662 DESCRIPTION
="Custom protocol, rule based network proxy"
664 https://watfaq.gitbook.io/clashrs-user-manual/
665 https://github.com/Watfaq/clash-rs/
668 https://github.com/Watfaq/clash-rs/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
673 # Dependent crate licenses
675 0BSD Apache-2.0 BSD-2 BSD CC0-1.0 ISC MIT MPL-2.0 Unicode-DFS-2016
676 Unlicense WTFPL-2 ZLIB
681 REQUIRED_UES
="debug? ( !lto )"
690 # let portage do the strip
691 export CARGO_PROFILE_RELEASE_STRIP
=false
693 export CARGO_PROFILE_RELEASE_LTO
=false
700 insinto
"/etc/clash-rs"
701 doins
"${FILESDIR}/config.example.yaml"
702 systemd_dounit
"${FILESDIR}/clash-rs.service"
704 newbin target
/$
(usex debug
"debug" "release")/clash clash-rs
705 use doc
&& dodoc
-r .
/docs