rust-proxmox-router (3.4.0-1) trixie; urgency=medium

  * cli: support oneOf parameter schemas, also flattened into an allOf:
    - parsing, completion and help follow the variant selected by the type
      property; completion only offers options and values of that variant.
    - help describes a property of multiple variants once per variant, with
      the condition under which it applies.
    - global options can use flattened oneOfs. A property shared by variants
      is a single option, and options of an inactive variant are rejected.
    - a table of a single object only shows the properties of its variant.
    - positional and fixed parameters must not have clashing schemas across
      variants.

  * add Stream::from_producer for streaming API handlers. It runs a handler's
    record producer as part of the response stream instead of as a spawned
    task, so the producer stops as soon as the client disconnects.

 -- Proxmox Support Team <support@proxmox.com>  Sat, 17 Oct 2026 13:46:08 +0200

rust-proxmox-router (3.3.0-1) trixie; urgency=medium

  * add a type-keyed registry for shared state and expose it to API handlers
    through the RPC environment. This allows passing long-lived application
    state, like configuration, caches or clients, to handlers without using
    global variables. A registry can also be set for the CLI environment.

 -- Proxmox Support Team <support@proxmox.com>  Mon, 12 Oct 2026 18:27:02 +0200

rust-proxmox-router (3.2.9-1) trixie; urgency=medium

  * check at compile time that the parameters an API method's permission
    refers to exist in its parameter schema: `{name}` components of
    privilege paths and the parameters of `Permission::WithParam` and
    `Permission::UserParam`. A missing parameter previously only showed up
    at runtime, as a permission check that always failed with 403. Schemas
    that allow additional properties are not checked.

  * cli: help output:
    - leave out the empty group name in the global options header of the
      top-level `help` output, short and verbose, for example
      "Global options for ``:".
    - separate the commands in the verbose help with a blank line, so one
      command's parameters no longer run into the next usage line.

  * cli: fix a panic in shell completion of commands with a positional
    parameter, when the last global option before the cursor has no
    completion callback.

 -- Proxmox Support Team <support@proxmox.com>  Wed, 30 Sep 2026 11:06:18 +0200

rust-proxmox-router (3.2.8-1) trixie; urgency=medium

  * cli: accept deprecated property aliases from proxmox-schema 5.3 when
    parsing command-line arguments: an option renamed in the schema keeps
    working under its old name, while only the new one shows up in help and
    documentation. Specifying both spellings at once is rejected.

  * cli: print a usage error when parsing a global option fails, instead of
    exiting silently. This affected per-command options placed before the
    subcommand, unknown global options, and global options missing their
    value.

 -- Proxmox Support Team <support@proxmox.com>  Fri, 17 Jul 2026 17:39:49 +0200

rust-proxmox-router (3.2.7-1) trixie; urgency=medium

  * cli: auto-insert a `help` subcommand in CommandLine::new for nested
    interfaces, so callers using the modern parser get per-command help
    output, including any inherited global-options section, without needing to
    call insert_help themselves. Existing `help` registrations are kept.

  * cli: format: list global options in the Short format usage banner, so
    users discover top-level flags from the no-args usage output instead of
    having to drill into per-command help to find them.

 -- Proxmox Support Team <support@proxmox.com>  Fri, 15 May 2026 01:17:17 +0200

rust-proxmox-router (3.2.6-1) trixie; urgency=medium

  * cli: also add CommandLine::try_run, a variant of run() that returns errors
    instead of exiting the process.

 -- Proxmox Support Team <support@proxmox.com>  Sun, 22 Mar 2026 09:12:43 +0100

rust-proxmox-router (3.2.5-1) trixie; urgency=medium

  * cli: add CommandLine::run convenience method to avoid every CLI wanting to
    use the new style has to do the same three steps (parse, extract global,
    exit on error) themselves.

  * cli: fix return type of global_option_mut, wasn't mut and thus not really
    useful (still unused AFAICT, we only use this new way in PDM currently).

 -- Proxmox Support Team <support@proxmox.com>  Sat, 21 Mar 2026 20:15:36 +0100

rust-proxmox-router (3.2.4-1) trixie; urgency=medium

  * add unstable flag to the ApiMethod struct to allow flagging some endpoints
    to not have our usual stability guarantees (yet).

 -- Proxmox Support Team <support@proxmox.com>  Mon, 01 Dec 2025 16:30:28 +0100

rust-proxmox-router (3.2.3-1) trixie; urgency=medium

  * update to proxmox-schema 5

  * update unicode-width to 0.2

 -- Proxmox Support Team <support@proxmox.com>  Thu, 04 Sep 2025 10:29:59 +0200

rust-proxmox-router (3.2.2-1) trixie; urgency=medium

  * synopsis generation: avoid outputting transition at start of section for
    Restructured Text format.

 -- Proxmox Support Team <support@proxmox.com>  Mon, 16 Jun 2025 12:51:14 +0200

rust-proxmox-router (3.2.1-1) trixie; urgency=medium

  * add missing `#[cfg(feature = "server")]` to allow building without default
    features

 -- Proxmox Support Team <support@proxmox.com>  Wed, 11 Jun 2025 15:56:34 +0200

rust-proxmox-router (3.2.0-2) trixie; urgency=medium

  * update to hyper 1.0

 -- Proxmox Support Team <support@proxmox.com>  Thu, 22 May 2025 15:36:20 +0200

rust-proxmox-router (3.2.0-1) trixie; urgency=medium

  * re-build for Debian Trixie based releases.

 -- Proxmox Support Team <support@proxmox.com>  Mon, 12 May 2025 22:09:23 +0200

rust-proxmox-router (3.1.1-1) bookworm; urgency=medium

  * router: allow `from_str` on Confirmation that is not for `FromStr`

  * router: fix nested doc test cases to match intended output

  * router: cli: avoid unnecessary clones/allocation

  * rebuild with env_logger 0.11

 -- Proxmox Support Team <support@proxmox.com>  Thu, 13 Mar 2025 13:55:37 +0100

rust-proxmox-router (3.1.0-1) bookworm; urgency=medium

  * add `AsyncHttpBodyParameters` api handler type to server feature

  * docs: add horizontal line before nested command docs

 -- Proxmox Support Team <support@proxmox.com>  Tue, 04 Mar 2025 15:02:07 +0100

rust-proxmox-router (3.0.1-1) bookworm; urgency=medium

  * rebuild with proxmox-schema 4.0

 -- Proxmox Support Team <support@proxmox.com>  Wed, 15 Jan 2025 12:32:41 +0100

rust-proxmox-router (3.0.0-1) bookworm; urgency=medium

  * rename old streaming api to "serializing" (as it is not truly streaming)

  * add `StreamSync` and `StreamAsync` variants to `ApiHandler`, these can, if
    requested by the client, produce a stream of format `application/json-seq`
    (RFC7464)

  * add a "stream" feature to include decoding helpers for streaming api calls

 -- Proxmox Support Team <support@proxmox.com>  Wed, 04 Sep 2024 15:31:18 +0200

rust-proxmox-router (2.2.4-1) bookworm; urgency=medium

  * sort cli properties in usage output

  * deprecate `cli::init_cli_logger()`, replaced by one in proxmox-log

  * some clippy fixes

 -- Proxmox Support Team <support@proxmox.com>  Fri, 30 Aug 2024 13:52:16 +0200

rust-proxmox-router (2.2.3-1) stable; urgency=medium

  * remove unused dependencies `regex` and `tokio`

 -- Proxmox Support Team <support@proxmox.com>  Wed, 14 Aug 2024 12:01:40 +0200

rust-proxmox-router (2.2.2-1) stable; urgency=medium

  * cli: add OutputFormat enum api type

 -- Proxmox Support Team <support@proxmox.com>  Wed, 31 Jul 2024 10:05:26 +0200

rust-proxmox-router (2.2.1-1) stable; urgency=medium

  * cli: fix cli commands with no positional args (don't set 'deny_unknown' at
    the end)

  * fix typos in api and code documentation

 -- Proxmox Support Team <support@proxmox.com>  Mon, 22 Jul 2024 09:06:23 +0200

rust-proxmox-router (2.2.0-1) stable; urgency=medium

  * AsAny: add as_any_mut

  * cli: store extra object-schema args by type

  * cli: add a new CLI parser with support for global/hierarchical parameters
    which does not support single-dash for long options

  * cli: support 'help' output, completion and doc generation with the new CLI
    parser

  * add tests for doc generation

  * use const blocks in thread_local! calls

 -- Proxmox Support Team <support@proxmox.com>  Wed, 17 Jul 2024 14:17:48 +0200

rust-proxmox-router (2.1.5-1) stable; urgency=medium

  * replace c_str! macro usage with c"literalsl"

 -- Proxmox Support Team <support@proxmox.com>  Thu, 20 Jun 2024 10:43:51 +0200

rust-proxmox-router (2.1.4-1) stable; urgency=medium

  * include causes when printing fatal errors

  * replace libc::isatty with new is_terminal from std::io::Stdout

  * cli: add confirmation helper

 -- Proxmox Support Team <support@proxmox.com>  Wed, 19 Jun 2024 10:27:03 +0200

rust-proxmox-router (2.1.3-1) stable; urgency=medium

  * cli: allow specifying the arguments explicitly

  * add oneOf schema support and bump proxmox-schema dependency to 3

 -- Proxmox Support Team <support@proxmox.com>  Fri, 02 Feb 2024 13:54:46 +0100

rust-proxmox-router (2.1.2-1) stable; urgency=medium

  * fix a compile warning

 -- Proxmox Support Team <support@proxmox.com>  Wed, 06 Dec 2023 15:59:39 +0100

rust-proxmox-router (2.1.1-1) stable; urgency=medium

  * rebuild with env_logger 0.10

 -- Proxmox Support Team <support@proxmox.com>  Mon, 02 Oct 2023 09:09:32 +0200

rust-proxmox-router (2.1.0-1) bookworm; urgency=medium

  * move `HttpError` and its macros into its own crate and re-export here

 -- Proxmox Support Team <support@proxmox.com>  Fri, 28 Jul 2023 11:08:59 +0200

rust-proxmox-router (2.0.0-1) bookworm; urgency=medium

  * update to Debian 12 bookworm versioning

  * rebuild with proxmox-schema 2.0.0-1

 -- Proxmox Support Team <support@proxmox.com>  Mon, 24 Jul 2023 10:43:40 +0200

rust-proxmox-router (1.3.1-1) stable; urgency=medium

  * move common metadata to workspace

  * use workspace dependencies

  * update nix to 0.26

 -- Proxmox Support Team <support@proxmox.com>  Thu, 05 Jan 2023 12:09:26 +0100

rust-proxmox-router (1.3.0-1) unstable; urgency=medium

  * make hyper/http optional via new "server" feature

 -- Proxmox Support Team <support@proxmox.com>  Wed, 7 Sep 2022 09:15:10 +0200

rust-proxmox-router (1.2.4-1) unstable; urgency=medium

  * add init_cli_logger helper

 -- Proxmox Support Team <support@proxmox.com>  Tue, 21 Jun 2022 10:39:18 +0200

rust-proxmox-router (1.2.3-1) unstable; urgency=medium

  * update to nix 0.24

  * update to rustyline 9

 -- Proxmox Support Team <support@proxmox.com>  Thu, 2 Jun 2022 12:18:22 +0200

rust-proxmox-router (1.2.2-1) unstable; urgency=medium

  * router: drop Index impls for references

  * router: permissions: allow to pass (partial-) collapsed acl path
    components and variables

 -- Proxmox Support Team <support@proxmox.com>  Thu, 05 May 2022 08:56:13 +0200

rust-proxmox-router (1.2.1-1) unstable; urgency=medium

  * implement `Index` and `IndexMut` directly on `dyn RpcEnvironment` instead
    of just on references

 -- Proxmox Support Team <support@proxmox.com>  Thu, 21 Apr 2022 13:46:29 +0200

rust-proxmox-router (1.2.0-1) unstable; urgency=medium

  * add `SerializableReturn` trait

  * add streaming api handler variants

 -- Proxmox Support Team <support@proxmox.com>  Tue, 12 Apr 2022 14:23:25 +0200

rust-proxmox-router (1.1.1-1) unstable; urgency=medium

  * avoid anyhow wildcard imports

 -- Proxmox Support Team <support@proxmox.com>  Wed, 1 Dec 2021 13:17:44 +0100

rust-proxmox-router (1.1.0-1) unstable; urgency=medium

  * add filename completions helper (moved from pbs-tools)

 -- Proxmox Support Team <support@proxmox.com>  Wed, 13 Oct 2021 12:27:19 +0200

rust-proxmox-router (1.0.0-1) stable; urgency=medium

  * initial split out of `librust-proxmox-dev`

 -- Proxmox Support Team <support@proxmox.com>  Wed, 06 Oct 2021 11:04:36 +0200
