Commit graph

91 commits

Author SHA1 Message Date
devolutionsbot
aa6777b56a
chore(release): prepare for publishing (#748) 2025-05-27 15:21:56 +00:00
Marc-André Lureau
dd787af5a0 feat(benches): add perfenc
Make some internal APIs publicly visible thanks to "visibility" when
compiling with the "__bench" feature.

("testsuite-core" also learned "__bench", because fast_path.rs is a
shared file)

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2025-04-29 13:00:07 +02:00
Benoît Cortier
712da42ded
fix: inject socket local address for the client addr (#759)
We used to inject the resolved target server address, but that is not
what is expected. Server typically ignores this field so this was not a
problem up until now.
2025-04-21 09:08:50 +00:00
Zac Bergquist
bdde2c76de
fix(client)!: fix name of client address field (#754) 2025-04-16 04:23:49 -04:00
Marc-André Lureau
9f0edcc4c9 feat(client): Add no_audio_playback flag to Config struct
Enable audio playback on the client.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2025-04-08 13:35:44 +02:00
dependabot[bot]
ba488f956c
build(deps): bump the patch group across 1 directory with 2 updates (#731)
Bumps the patch group with 2 updates in the / directory:
[image](https://github.com/image-rs/image) and
[clap](https://github.com/clap-rs/clap).

Updates `image` from 0.25.5 to 0.25.6
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/image-rs/image/blob/main/CHANGES.md">image's
changelog</a>.</em></p>
<blockquote>
<h3>Version 0.25.6</h3>
<p>Features:</p>
<ul>
<li>Improved format detection (<a
href="https://redirect.github.com/image-rs/image/pull/2418">#2418</a>)</li>
<li>Implement writing ICC profiles for JPEG and PNG images (<a
href="https://redirect.github.com/image-rs/image/pull/2389">#2389</a>)</li>
</ul>
<p>Bug fixes:</p>
<ul>
<li>JPEG encoding bugfix (<a
href="https://redirect.github.com/image-rs/image/pull/2387">#2387</a>)</li>
<li>Expanded ICO format detection (<a
href="https://redirect.github.com/image-rs/image/pull/2434">#2434</a>)</li>
<li>Fixed EXR bug with NaNs (<a
href="https://redirect.github.com/image-rs/image/pull/2381">#2381</a>)</li>
<li>Various documentation improvements</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="f337e27aad"><code>f337e27</code></a>
Release 0.25.6 (<a
href="https://redirect.github.com/image-rs/image/issues/2441">#2441</a>)</li>
<li><a
href="0166f687e9"><code>0166f68</code></a>
CI: add num-traits to public (<a
href="https://redirect.github.com/image-rs/image/issues/2446">#2446</a>)</li>
<li><a
href="ca9e2dceb4"><code>ca9e2dc</code></a>
add links to readme (<a
href="https://redirect.github.com/image-rs/image/issues/2437">#2437</a>)</li>
<li><a
href="95be33928e"><code>95be339</code></a>
Making clippy happy (<a
href="https://redirect.github.com/image-rs/image/issues/2439">#2439</a>)</li>
<li><a
href="c62d3ace61"><code>c62d3ac</code></a>
Detect image/vnd.microsoft.icon mime types as ImageFormat::Ico (<a
href="https://redirect.github.com/image-rs/image/issues/2434">#2434</a>)</li>
<li><a
href="85f2412d55"><code>85f2412</code></a>
Fix missing spaces in JpegDecoder error message (<a
href="https://redirect.github.com/image-rs/image/issues/2433">#2433</a>)</li>
<li><a
href="b22ba14127"><code>b22ba14</code></a>
Remove limits when parsing JPEG metadata (<a
href="https://redirect.github.com/image-rs/image/issues/2429">#2429</a>)</li>
<li><a
href="4ef6f1505c"><code>4ef6f15</code></a>
Fix unbalanced backticks in doc comments (<a
href="https://redirect.github.com/image-rs/image/issues/2427">#2427</a>)</li>
<li><a
href="d4054385a1"><code>d405438</code></a>
Reduce typo count (<a
href="https://redirect.github.com/image-rs/image/issues/2426">#2426</a>)</li>
<li><a
href="68159de1c1"><code>68159de</code></a>
Update resize and blurs doc (<a
href="https://redirect.github.com/image-rs/image/issues/2424">#2424</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/image-rs/image/compare/v0.25.5...v0.25.6">compare
view</a></li>
</ul>
</details>
<br />

Updates `clap` from 4.5.32 to 4.5.34
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/clap-rs/clap/releases">clap's
releases</a>.</em></p>
<blockquote>
<h2>v4.5.34</h2>
<h2>[4.5.34] - 2025-03-27</h2>
<h3>Fixes</h3>
<ul>
<li><em>(help)</em> Don't add extra blank lines with
<code>flatten_help(true)</code> and subcommands without arguments</li>
</ul>
<h2>v4.5.33</h2>
<h2>[4.5.33] - 2025-03-26</h2>
<h3>Fixes</h3>
<ul>
<li><em>(error)</em> When showing the usage of a suggestion for an
unknown argument, don't show the group</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/clap-rs/clap/blob/master/CHANGELOG.md">clap's
changelog</a>.</em></p>
<blockquote>
<h2>[4.5.34] - 2025-03-27</h2>
<h3>Fixes</h3>
<ul>
<li><em>(help)</em> Don't add extra blank lines with
<code>flatten_help(true)</code> and subcommands without arguments</li>
</ul>
<h2>[4.5.33] - 2025-03-26</h2>
<h3>Fixes</h3>
<ul>
<li><em>(error)</em> When showing the usage of a suggestion for an
unknown argument, don't show the group</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="5d2cdac3e6"><code>5d2cdac</code></a>
chore: Release</li>
<li><a
href="f1c10ebe58"><code>f1c10eb</code></a>
docs: Update changelog</li>
<li><a
href="a4d1a7fe2b"><code>a4d1a7f</code></a>
chore(ci): Take a break from template updates</li>
<li><a
href="e95ed396c4"><code>e95ed39</code></a>
Merge pull request <a
href="https://redirect.github.com/clap-rs/clap/issues/5775">#5775</a>
from vivienm/master</li>
<li><a
href="18f8d4c3f5"><code>18f8d4c</code></a>
chore(deps): Update Rust Stable to v1.82 (<a
href="https://redirect.github.com/clap-rs/clap/issues/5788">#5788</a>)</li>
<li><a
href="f35d8e09fb"><code>f35d8e0</code></a>
Merge pull request <a
href="https://redirect.github.com/clap-rs/clap/issues/5787">#5787</a>
from epage/template</li>
<li><a
href="1389d7d689"><code>1389d7d</code></a>
chore: Update from '_rust/main' template</li>
<li><a
href="dbc9faa79d"><code>dbc9faa</code></a>
chore(ci): Initialize git for template update</li>
<li><a
href="3dac2f3683"><code>3dac2f3</code></a>
chore(ci): Get history for template update</li>
<li><a
href="e1f77dacf1"><code>e1f77da</code></a>
chore(ci): Fix branch for template update</li>
<li>Additional commits viewable in <a
href="https://github.com/clap-rs/clap/compare/clap_complete-v4.5.32...clap_complete-v4.5.34">compare
view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-01 10:38:24 -04:00
Marc-André Lureau
229070a435 refactor(server)!: rename left/top -> x/y
This is more idiomatic, and thus less confusing.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2025-03-31 18:11:03 +02:00
Marc-André Lureau
3c43fdda76 refactor(server)!: use bytes, allowing shareable bitmap data
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2025-03-31 18:11:03 +02:00
Marc-André Lureau
db6f4cdb7f refactor(server)!: drop support for pixelOrder
Dealing with multiple formats is sufficiently annoying, there isn't much
need for awkward image layout. This was done for efficiency reason for
bitmap encoding, but bitmap is really inefficient anyway and very few
servers will actually provide bottom to top images (except with GL/GPU
textures, but this is not in scope yet).

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2025-03-31 18:11:03 +02:00
Benoît CORTIER
97f4f25813 style: run cargo +nightly fmt 2025-03-13 11:03:10 +01:00
devolutionsbot
570cbe3c3f
chore(release): prepare for publishing (#701) 2025-03-13 09:57:35 +00:00
Benoît Cortier
0705840aa5
docs(ironrdp): fix documentation build (#700) 2025-03-13 09:37:13 +00:00
devolutionsbot
b19008c029
chore(release): prepare for publishing (#699) 2025-03-13 09:06:30 +00:00
devolutionsbot
f2c8482ba6
build: bump ironrdp-pdu (#698) 2025-03-12 20:59:54 +00:00
devolutionsbot
92dd927ec2
chore(release): prepare for publishing (#696) 2025-03-12 16:40:47 +00:00
Benoît Cortier
c21fa44fd6
build: do not use workspace dependencies (#695)
As written in the workspace Cargo.toml:

> Note that for better cross-tooling interactions, do not use workspace
dependencies for anything that is not "workspace internal" (e.g.: mostly
dev-dependencies). E.g.: release-plz can’t detect that a dependency has
been
updated in a way warranting a version bump in the dependant if no commit
is
touching a file associated to the crate. It is technically okay to use
that
for "private" (i.e.: not used in the public API) dependencies too, but
we
still want to make follow-up releases to stay up to date with the
community,
even for private dependencies.

Expectation is that release-plz will be able to auto-detect when bumping
dependents is necessary.

Closes #689
2025-03-12 09:25:01 -04:00
devolutionsbot
e6d6e9d8a7
chore(release): prepare for publishing (#628) 2025-01-28 23:24:35 +00:00
Marc-Andre Lureau
fa353765af
feat(example): encode audio with Opus (#643)
Demonstrates Opus audio codec support (and also fixes sine wave phase)

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2025-01-27 16:22:15 -05:00
Marc-André Lureau
98b77b5ee5 fix(examples): fix server deps
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2025-01-27 07:35:36 -05:00
Marc-André Lureau
1a36fd3669 fix(examples): used import from std instead of core
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2025-01-27 07:35:36 -05:00
Przemko Robakowski
dd221bf224
feat: support license caching (#634)
Adds support for license caching by storing the license obtained
from SERVER_UPGRADE_LICENSE message and sending
CLIENT_LICENSE_INFO if a license requested by the server is already
stored in the cache.

Co-authored-by: Benoît Cortier <3809077+CBenoit@users.noreply.github.com>
2025-01-18 14:34:58 +00:00
Sébastien Duquette
dd249909a8
docs: use CDN URLs instead of the blob storage URLs for Devolutions logo (#631) 2025-01-09 10:06:10 -05:00
devolutionsbot
114098b673
chore(release): prepare for publishing (#621) 2024-12-16 11:24:01 +00:00
Benoît Cortier
cff5c1a59c
docs(ironrdp): inline documentation for re-exported items (#619) 2024-12-16 08:19:46 +00:00
Benoît CORTIER
912c27cffe chore(release): prepare for publishing 2024-12-15 12:02:36 -05:00
Benoît Cortier
02c6fd5dfe
docs(ironrdp): fix server example (#616)
The rt-multi-thread feature of tokio is not enabled when compiling the
example alone (without feature unification from other crates of the
workspace).
2024-12-15 08:17:04 -05:00
devolutionsbot
97ef9f0acb
chore(release): prepare for publishing (#611) 2024-12-14 14:32:28 +00:00
Benoît Cortier
0c10367ebc
chore: symlinks to license files in packages (#604)
Add symlinks to the license files in crates that we are publishing on
crates.io.
2024-12-11 08:13:26 -05:00
Benoît Cortier
755738ff9c
chore: prepare release (#598)
Crates to release:

- ironrdp-acceptor -> 0.2.0
- ironrdp-async -> 0.2.0
- ironrdp-blocking -> 0.2.0
- ironrdp-session -> 0.2.0
- ironrdp-server -> 0.3.0
- ironrdp -> 0.7.0
2024-12-06 09:51:14 +00:00
Marc-André Lureau
fe0d9e9773 example: replace bmp with image/png
bmp is a small crate, but it is not popular, and apparently
unmaintained. Use the ubiquitous image crate and the PNG format instead.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2024-11-29 05:31:05 -05:00
Marc-André Lureau
0ee5bfc561 fix(examples): fix screenshot deps
Set the required-features and use sspi with "network_client".

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2024-11-29 05:31:05 -05:00
Benoît Cortier
fc23992dea
chore: prepare release (#585)
Crates to release:

- ironrdp-core -> 0.1.1
- ironrdp-pdu -> 0.1.1
- ironrdp-svc -> 0.1.1
- ironrdp-connector -> 0.2.0
- ironrdp-server -> 0.2.0
- ironrdp -> 0.6.0
2024-11-21 10:14:01 -05:00
Benoît Cortier
bab049aa00
docs(ironrdp): README.md dedicated to the meta crate (#582)
Using the top-level README.md of the repository is not ideal.

1/ It contains many information unrelated to the meta crate itself.

2/ The following attribute:

```
 #![doc = include_str!("../../../README.md")]
```

will fail at finding the README.md when built via `cargo package`.
2024-11-20 11:15:29 +00:00
Zac Bergquist
36da11c02e
feat(connector): allow clients to specify the x224 nego request data (#580)
The previous code would (correctly) set a cookie containining the
username, but only when using username/password credentials. When
smart card credentials are used, the cookie would always contain
the empty string.
2024-11-19 20:44:40 -05:00
Benoît CORTIER
294af1cc5c style: cargo +nightly fmt 2024-11-20 01:28:31 +09:00
Benoît CORTIER
807eb59b07 refactor: enable clippy::std_instead_of_core lint 2024-11-20 01:28:31 +09:00
Benoît CORTIER
d9b69c68f9 build: enable unused_crate_dependencies lint
All reported cases were actually unused dependencies.
2024-11-20 01:28:31 +09:00
Marc-André Lureau
3c503cb2d1 chore: change "default" feature to only enable "core" and "pdu"
Reorganize a bit the dev-dependencies for screenshot/server examples.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2024-10-29 21:48:11 +09:00
Marc-André Lureau
d1b95676f0 docs(example/server): use server TlsIdentityCtx
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2024-10-29 21:48:11 +09:00
Marc-André Lureau
a9356fc57b docs(example/server): refactor acceptor() to be a TlsIdentityCtx method
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2024-10-29 21:48:11 +09:00
Marc-André Lureau
5381b24444 docs: use Devolutions logo
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2024-10-29 19:14:20 +09:00
Marc-André Lureau
bf56a7fc80 docs: use README.md for crates lib.rs doc
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2024-10-29 19:14:20 +09:00
Marc-André Lureau
8d15f0bca9 chore(ironrdp): use workspace README.md
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2024-10-29 19:14:20 +09:00
Benoît CORTIER
4a7f233725 docs(example/server): fix default value for the bind address
Replaced --host and --port by a single --bind-addr parameter with
a default value which does not cause a runtime error.
2024-10-25 16:04:07 +09:00
Benoît CORTIER
59c2dc4675 docs(example/server): specify required features 2024-10-25 16:04:07 +09:00
Benoît CORTIER
2a2b555a11 docs(example/server): refactor for clarity 2024-10-25 16:04:07 +09:00
Marc-André Lureau
b9db9ea645 feat(example): add hybrid security to server example
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2024-10-25 13:19:58 +09:00
Marc-André Lureau
ac24e15a3d feat(example): add user/pass to server
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2024-10-25 13:19:58 +09:00
Marc-André Lureau
bb1860d153 build: update Rust toolchain to 1.82.0
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2024-10-25 13:19:58 +09:00
dependabot[bot]
0faebe13fe
build(deps): bump rustls-pemfile from 2.1.3 to 2.2.0 in the crypto group (#553)
Bumps the crypto group with 1 update: [rustls-pemfile](https://github.com/rustls/pemfile).


Updates `rustls-pemfile` from 2.1.3 to 2.2.0
- [Release notes](https://github.com/rustls/pemfile/releases)
- [Commits](https://github.com/rustls/pemfile/compare/v/2.1.3...v/2.2.0)

---
updated-dependencies:
- dependency-name: rustls-pemfile
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: crypto
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-01 08:11:36 -04:00