# Copyright 2023-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # Autogenerated by pycargoebuild 0.15.0 EAPI=8 CRATES=" actix-codec@0.5.2 actix-files@0.6.6 actix-http@3.11.0 actix-macros@0.2.4 actix-multipart@0.7.2 actix-multipart-derive@0.7.0 actix-router@0.5.3 actix-rt@2.10.0 actix-server@2.6.0 actix-service@2.0.3 actix-tls@3.4.0 actix-utils@3.0.1 actix-web@4.11.0 actix-web-codegen@4.3.0 actix-web-httpauth@0.8.2 addr2line@0.24.2 adler2@2.0.1 adler32@1.2.0 ahash@0.8.12 aho-corasick@1.1.3 alloc-no-stdlib@2.0.4 alloc-stdlib@0.2.2 allocator-api2@0.2.21 alphanumeric-sort@1.5.3 android-tzdata@0.1.1 android_system_properties@0.1.5 anstream@0.6.19 anstyle@1.0.11 anstyle-parse@0.2.7 anstyle-query@1.1.3 anstyle-wincon@3.0.9 anyhow@1.0.98 arbitrary@1.4.1 assert_cmd@2.0.17 assert_fs@1.1.3 async-channel@2.3.1 async-fs@2.1.2 async-lock@3.4.0 async-task@4.7.1 async-trait@0.1.88 async-walkdir@2.1.0 atomic-waker@1.1.2 autocfg@1.5.0 backtrace@0.3.75 base64@0.22.1 bit-set@0.5.3 bit-vec@0.6.3 bitflags@2.9.1 block-buffer@0.10.4 blocking@1.6.1 brotli@8.0.1 brotli-decompressor@5.0.0 bstr@1.12.0 bumpalo@3.18.1 bytes@1.10.1 bytesize@2.0.1 bytestring@1.4.0 caseless@0.2.2 cc@1.2.27 cfg-if@1.0.1 cfg_aliases@0.2.1 chrono@0.4.41 chrono-humanize@0.2.3 clap@4.5.40 clap_builder@4.5.40 clap_complete@4.5.54 clap_derive@4.5.40 clap_lex@0.7.5 clap_mangen@0.2.27 codemap@0.1.3 colorchoice@1.0.4 colored@3.0.0 comrak@0.39.0 concurrent-queue@2.5.0 convert_case@0.4.0 cookie@0.16.2 core-foundation@0.9.4 core-foundation-sys@0.8.7 core2@0.4.0 cpufeatures@0.2.17 crc32fast@1.4.2 crossbeam-deque@0.8.6 crossbeam-epoch@0.9.18 crossbeam-utils@0.8.21 crypto-common@0.1.6 darling@0.20.11 darling_core@0.20.11 darling_macro@0.20.11 dary_heap@0.3.7 dav-server@0.8.0 deranged@0.4.0 derivative@2.2.0 derive_arbitrary@1.4.1 derive_more@0.99.20 derive_more@2.0.1 derive_more-impl@2.0.1 deunicode@1.6.2 diff@0.1.13 difflib@0.4.0 digest@0.10.7 digest_auth@0.3.1 displaydoc@0.2.5 doc-comment@0.3.3 dyn-clone@1.0.19 encoding_rs@0.8.35 entities@1.0.1 equivalent@1.0.2 errno@0.3.13 event-listener@5.4.0 event-listener-strategy@0.5.4 fake-tty@0.3.1 fast_qr@0.13.1 fastrand@2.3.0 filetime@0.2.25 flate2@1.1.2 float-cmp@0.10.0 fnv@1.0.7 foldhash@0.1.5 foreign-types@0.3.2 foreign-types-shared@0.1.1 form_urlencoded@1.2.1 futf@0.1.5 futures@0.3.31 futures-channel@0.3.31 futures-core@0.3.31 futures-executor@0.3.31 futures-io@0.3.31 futures-lite@2.6.0 futures-macro@0.3.31 futures-sink@0.3.31 futures-task@0.3.31 futures-timer@3.0.3 futures-util@0.3.31 generic-array@0.14.7 getrandom@0.2.16 getrandom@0.3.3 gimli@0.31.1 glob@0.3.2 globset@0.4.16 globwalk@0.9.1 grass@0.13.4 grass_compiler@0.13.4 h2@0.3.26 h2@0.4.10 hashbrown@0.14.5 hashbrown@0.15.4 headers@0.4.1 headers-core@0.3.0 heck@0.5.0 hex@0.4.3 html5ever@0.26.0 htmlescape@0.3.1 http@0.2.12 http@1.3.1 http-body@1.0.1 http-body-util@0.1.3 http-range@0.1.5 httparse@1.10.1 httpdate@1.0.3 hyper@1.6.0 hyper-rustls@0.27.7 hyper-tls@0.6.0 hyper-util@0.1.14 iana-time-zone@0.1.63 iana-time-zone-haiku@0.1.2 icu_collections@2.0.0 icu_locale_core@2.0.0 icu_normalizer@2.0.0 icu_normalizer_data@2.0.0 icu_properties@2.0.1 icu_properties_data@2.0.1 icu_provider@2.0.0 ident_case@1.0.1 idna@1.0.3 idna_adapter@1.2.1 if-addrs@0.13.4 ignore@0.4.23 impl-more@0.1.9 include_sass@0.13.4 indexmap@2.9.0 ipnet@2.11.0 iri-string@0.7.8 is_terminal_polyfill@1.70.1 itoa@1.0.15 jobserver@0.1.33 js-sys@0.3.77 language-tags@0.3.2 lasso@0.7.3 lazy_static@1.5.0 libc@0.2.174 libflate@2.1.0 libflate_lz77@2.1.0 libredox@0.1.3 linux-raw-sys@0.9.4 litemap@0.8.0 local-channel@0.1.5 local-waker@0.1.4 lock_api@0.4.13 log@0.4.27 lru@0.14.0 lru-slab@0.1.2 mac@0.1.1 markup5ever@0.11.0 markup5ever_rcdom@0.2.0 maud@0.27.0 maud_macros@0.27.0 md-5@0.10.6 memchr@2.7.5 mime@0.3.17 mime_guess@2.0.5 miniz_oxide@0.8.9 mio@1.0.4 nanoid@0.4.0 native-tls@0.2.14 new_debug_unreachable@1.0.6 normalize-line-endings@0.3.0 num-conv@0.1.0 num-traits@0.2.19 num_threads@0.1.7 object@0.36.7 once_cell@1.21.3 once_cell_polyfill@1.70.1 openssl@0.10.73 openssl-macros@0.1.1 openssl-probe@0.1.6 openssl-sys@0.9.109 parking@2.2.1 parking_lot@0.12.4 parking_lot_core@0.9.11 parse-size@1.1.0 percent-encoding@2.3.1 phf@0.10.1 phf@0.11.3 phf_codegen@0.10.0 phf_generator@0.10.0 phf_generator@0.11.3 phf_macros@0.11.3 phf_shared@0.10.0 phf_shared@0.11.3 pin-project@1.1.10 pin-project-internal@1.1.10 pin-project-lite@0.2.16 pin-utils@0.1.0 piper@0.2.4 pkg-config@0.3.32 port_check@0.2.1 potential_utf@0.1.2 powerfmt@0.2.0 ppv-lite86@0.2.21 precomputed-hash@0.1.1 predicates@3.1.3 predicates-core@1.0.9 predicates-tree@1.0.12 pretty_assertions@1.4.1 proc-macro-crate@3.3.0 proc-macro2@1.0.95 proc-macro2-diagnostics@0.10.1 quinn@0.11.8 quinn-proto@0.11.12 quinn-udp@0.5.13 quote@1.0.40 r-efi@5.3.0 rand@0.8.5 rand@0.9.1 rand_chacha@0.3.1 rand_chacha@0.9.0 rand_core@0.6.4 rand_core@0.9.3 redox_syscall@0.5.13 reflink-copy@0.1.26 regex@1.11.1 regex-automata@0.4.9 regex-lite@0.1.6 regex-syntax@0.8.5 relative-path@1.9.3 reqwest@0.12.20 reqwest_dav@0.2.1 ring@0.17.14 rle-decode-fast@1.0.3 roff@0.2.2 rstest@0.25.0 rstest_macros@0.25.0 rustc-demangle@0.1.25 rustc-hash@2.1.1 rustc_version@0.4.1 rustix@1.0.7 rustls@0.23.28 rustls-pemfile@2.2.0 rustls-pki-types@1.12.0 rustls-webpki@0.103.3 rustversion@1.0.21 ryu@1.0.20 same-file@1.0.6 schannel@0.1.27 scopeguard@1.2.0 security-framework@2.11.1 security-framework-sys@2.14.0 select@0.6.1 semver@1.0.26 serde@1.0.219 serde-xml-rs@0.6.0 serde_derive@1.0.219 serde_json@1.0.140 serde_plain@1.0.2 serde_urlencoded@0.7.1 sha1@0.10.6 sha2@0.10.9 shlex@1.3.0 signal-hook-registry@1.4.5 simplelog@0.12.2 siphasher@0.3.11 siphasher@1.0.1 slab@0.4.10 slug@0.1.6 smallvec@1.15.1 socket2@0.5.10 stable_deref_trait@1.2.0 string_cache@0.8.9 string_cache_codegen@0.5.4 strsim@0.11.1 strum@0.27.1 strum_macros@0.27.1 subtle@2.6.1 syn@1.0.109 syn@2.0.104 sync_wrapper@1.0.2 synstructure@0.13.2 system-configuration@0.6.1 system-configuration-sys@0.6.0 tar@0.4.44 tempfile@3.20.0 tendril@0.4.3 termcolor@1.4.1 terminal_size@0.4.2 termtree@0.5.1 thiserror@1.0.69 thiserror@2.0.12 thiserror-impl@1.0.69 thiserror-impl@2.0.12 time@0.3.41 time-core@0.1.4 time-macros@0.2.22 tinystr@0.8.1 tinyvec@1.9.0 tinyvec_macros@0.1.1 tokio@1.45.1 tokio-macros@2.5.0 tokio-native-tls@0.3.1 tokio-rustls@0.26.2 tokio-util@0.7.15 toml_datetime@0.6.11 toml_edit@0.22.27 tower@0.5.2 tower-http@0.6.6 tower-layer@0.3.3 tower-service@0.3.3 tracing@0.1.41 tracing-attributes@0.1.30 tracing-core@0.1.34 try-lock@0.2.5 typed-arena@2.0.2 typenum@1.18.0 unicase@2.8.1 unicode-ident@1.0.18 unicode-normalization@0.1.24 unicode-xid@0.2.6 unicode_categories@0.1.1 untrusted@0.9.0 url@2.5.4 utf-8@0.7.6 utf8_iter@1.0.4 utf8parse@0.2.2 uuid@1.17.0 v_htmlescape@0.15.8 vcpkg@0.2.15 version_check@0.9.5 wait-timeout@0.2.1 walkdir@2.5.0 want@0.3.1 wasi@0.11.1+wasi-snapshot-preview1 wasi@0.14.2+wasi-0.2.4 wasm-bindgen@0.2.100 wasm-bindgen-backend@0.2.100 wasm-bindgen-futures@0.4.50 wasm-bindgen-macro@0.2.100 wasm-bindgen-macro-support@0.2.100 wasm-bindgen-shared@0.2.100 web-sys@0.3.77 web-time@1.1.0 webpki-roots@1.0.1 winapi-util@0.1.9 windows@0.61.3 windows-collections@0.2.0 windows-core@0.61.2 windows-future@0.2.1 windows-implement@0.60.0 windows-interface@0.59.1 windows-link@0.1.3 windows-numerics@0.2.0 windows-registry@0.5.3 windows-result@0.3.4 windows-strings@0.4.2 windows-sys@0.52.0 windows-sys@0.59.0 windows-sys@0.60.2 windows-targets@0.52.6 windows-targets@0.53.2 windows-threading@0.1.0 windows_aarch64_gnullvm@0.52.6 windows_aarch64_gnullvm@0.53.0 windows_aarch64_msvc@0.52.6 windows_aarch64_msvc@0.53.0 windows_i686_gnu@0.52.6 windows_i686_gnu@0.53.0 windows_i686_gnullvm@0.52.6 windows_i686_gnullvm@0.53.0 windows_i686_msvc@0.52.6 windows_i686_msvc@0.53.0 windows_x86_64_gnu@0.52.6 windows_x86_64_gnu@0.53.0 windows_x86_64_gnullvm@0.52.6 windows_x86_64_gnullvm@0.53.0 windows_x86_64_msvc@0.52.6 windows_x86_64_msvc@0.53.0 winnow@0.7.11 wit-bindgen-rt@0.39.0 writeable@0.6.1 xattr@1.5.0 xml-rs@0.8.26 xml5ever@0.17.0 xmltree@0.11.0 yansi@1.0.1 yoke@0.8.0 yoke-derive@0.8.0 zerocopy@0.8.26 zerocopy-derive@0.8.26 zerofrom@0.1.6 zerofrom-derive@0.1.6 zeroize@1.8.1 zerotrie@0.2.2 zerovec@0.11.2 zerovec-derive@0.11.1 zip@4.2.0 zstd@0.13.3 zstd-safe@7.2.4 zstd-sys@2.0.15+zstd.1.5.7 " inherit cargo shell-completion systemd DESCRIPTION="For when you really just want to serve some files over HTTP right now!" HOMEPAGE="https://github.com/svenstaro/miniserve" SRC_URI=" https://github.com/svenstaro/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz ${CARGO_CRATE_URIS} " LICENSE="MIT" # Dependent crate licenses LICENSE+=" Apache-2.0 BSD-2 BSD CDLA-Permissive-2.0 ISC MIT MPL-2.0 Unicode-3.0 ZLIB " SLOT="0" KEYWORDS="~amd64" RUST_MIN_VER="1.85.0" DOCS=( {README,CHANGELOG}.md ) # rust does not use *FLAGS from make.conf, silence portage warning # update with proper path to binaries this crate installs, omit leading / QA_FLAGS_IGNORED="usr/bin/${PN}" QA_PRESTRIPPED="${QA_FLAGS_IGNORED}" src_compile() { cargo_src_compile $(cargo_target_dir)/${PN} --print-completions bash > bash-completion.sh || die $(cargo_target_dir)/${PN} --print-completions zsh > zsh-completion.zsh || die $(cargo_target_dir)/${PN} --print-manpage > "${PN}.1" || die } src_install() { cargo_src_install doman "${PN}.1" einstalldocs newbashcomp bash-completion.sh ${PN} newzshcomp zsh-completion.zsh _${PN} systemd_dounit "packaging/${PN}@.service" }