Commit Graph

1332 Commits

Author SHA1 Message Date
Dion Gionet Mallet d013e0149d [DEVOPS-3949] ci(nuget): use Trusted Publishing auth 2025-11-20 14:03:43 -05:00
Yuval Marcus a70e01d9c5 fix(server): send TLS close_notify during graceful RDP disconnect (#1032)
Add support for sending a proper TLS close_notify message when the RDP
client initiates a graceful disconnect PDU.
2025-11-17 07:36:31 -05:00
Yuval Marcus f2326ef046 fix(cliprdr)!: receiving a TemporaryDirectory PDU should not fail the svc (#1031)
- Fixes the Cliprdr `SvcProcessor` impl. to support handling a
`TemporaryDirectory` Clipboard PDU.
- Removes `ClipboardError::UnimplementedPdu` since it is no longer used
2025-11-17 10:13:47 +00:00
Yuval Marcus 966ba8a53e feat(ironrdp-tokio): add MovableTokioFramed for Send+!Sync context (#1033)
The `ironrdp-tokio` crate currently provides the following two
`Framed<S>` implementations using the standard `tokio::io` traits:
- `type TokioFramed<S> = Framed<TokioStream<S>>` where `S: Send + Sync +
Unpin`
- `type LocalTokioFramed<S> = Framed<LocalTokioStream<S>>` where `S:
Unpin`

The former is meant for multi-threaded runtimes and the latter is meant
for single-threaded runtimes.

This PR adds a third `Framed<S>` implementation:

`pub type MovableTokioFramed<S> = Framed<MovableTokioStream<S>>` where
`S: Send + Unpin`

This is a valid usecase as some implementations of the `tokio::io`
traits are `Send` but `!Sync`. Without this new third type, consumers of
`Framed<S>` who have a `S: Send + !Sync` trait for their streams are
forced to downgrade to `LocalTokioFramed` and do some hacky workaround
with `tokio::task::spawn_blocking` since the defined associated futures,
`ReadFut` and `WriteAllFut`, are neither `Send` nor `Sync`.
2025-11-17 10:11:16 +00:00
dependabot[bot] 79e71c4f90 build(deps): bump windows from 0.61.3 to 0.62.1 (#1010)
Co-authored-by: Vladyslav Nikonov <mail@pacmancoder.xyz>
2025-11-10 14:12:28 -05:00
Alex Yusiuk 9622619e8c refactor: add as_conversions clippy correctness lint (#1021)
Co-authored-by: Benoît CORTIER <git.divisible626@passmail.com>
2025-11-05 22:23:22 +00:00
irvingouj@Devolutions d3e0cb17e1 feat(ffi): expose RDCleanPath (#1014)
Add RDCleanPath support for Devolutions.IronRDP .NET package
2025-10-30 16:38:41 +00:00
Raphaël Larivière 2cedc05722 ci(npm): migrate publishing to OIDC authentication (#1026)
Issue: DEVOPS-3952
2025-10-30 08:40:10 -04:00
Alex Yusiuk abc391c134 refactor: add partial_pub_fields clippy style and readability lint (#976) 2025-10-23 10:58:41 -04:00
dependabot[bot] bbdecc2aa9 build(deps): bump clap from 4.5.49 to 4.5.50 in the patch group across 1 directory (#1023) 2025-10-21 05:04:36 -04:00
Alex Yusiuk e87048c19b refactor: get rid of lazy_static (#1022) 2025-10-20 15:07:19 -04:00
dependabot[bot] 52225cca3e build(deps): bump the patch group across 1 directory with 3 updates (#1017) 2025-10-14 05:25:35 -04:00
Alex Yusiuk 6214c95c6f test(extra): move the mod.rs to the correct tests directory (#1019) 2025-10-14 05:11:58 -04:00
rhammonds-teleport a0a3e750c9 fix(rdpdr): fix incorrect padding when parsing NDR strings (#1015)
When parsing Network Data Representation (NDR) messages, we're supposed
to account for padding at the end of strings to remain aligned on a
4-byte boundary. The existing code doesn't seem to cover all cases, and
the resulting misalignment causes misleading errors when processing the
rest of the message.
2025-10-09 13:25:08 -04:00
dependabot[bot] d24dbb1e2c build(deps): bump tokio-tungstenite from 0.27.0 to 0.28.0 (#1009) 2025-10-08 04:19:40 -04:00
dependabot[bot] a24a1fa9e8 build(deps): bump bytemuck from 1.23.2 to 1.24.0 (#1008) 2025-10-07 09:43:36 -04:00
Alex Yusiuk cca53fd79b chore(web): bump iron-remote-desktop to 0.10.1 (#1011) npm-iron-remote-desktop-v0.10.1 npm-iron-remote-desktop-rdp-v0.6.1 2025-10-07 06:47:11 -04:00
Alex Yusiuk da38fa20a3 chore(web): bump iron-remote-desktop-rdp to 0.6.1 (#1012) 2025-10-07 06:46:35 -04:00
Alex Yusiuk 82dbb6460f refactor(ironrdp-pdu)!: fix as_conversions clippy lint warnings (#967)
Co-authored-by: Benoît CORTIER <git.divisible626@passmail.com>
2025-10-07 09:36:58 +00:00
Alex Yusiuk af8ebdcfa2 refactor: enable missing_panics_doc clippy lint (#1006)
> Checks the doc comments of publicly visible functions that may panic
and warns if there is no # Panics section.

Co-authored-by: Benoît Cortier <3809077+CBenoit@users.noreply.github.com>
2025-10-06 09:19:22 +00:00
Alex Yusiuk ce298d1c19 refactor: enable self_named_module_files clippy lint (#1007)
> Checks that module layout uses only mod.rs files.
2025-10-03 05:37:14 -04:00
Alex Yusiuk a8289bf63f refactor: enable unnecessary_self_imports clippy lint (#1005) 2025-10-02 05:10:55 -04:00
Alex Yusiuk bbc38db750 chore: enable try_err clippy lint (#1004) 2025-10-02 08:34:02 +00:00
Alex Yusiuk 49a0a9e6d2 chore: enable rest_pat_in_fully_bound_structs clippy lint (#1003) 2025-10-02 04:05:34 -04:00
devolutionsbot c6b5487559 chore(release): prepare for publishing (#1002) ironrdp-rdcleanpath-v0.2.1 2025-10-02 03:34:02 +00:00
Gabriel Bauman 18c81ed5d8 feat(web): human-readable descriptions for RDCleanPath errors (#999)
More munging to give human-readable webclient-side errors for
RDCleanPath general/negotiation errors, including strings for WSA and
TLS and HTTP error conditions.
2025-10-01 22:54:37 -04:00
Alex Yusiuk b91a4eeb01 refactor: enable redundant_type_annotations clippy lint (#1001) 2025-09-30 09:45:22 -04:00
devolutionsbot 209108dc2c chore(release): prepare for publishing (#997) iron-remote-desktop-v0.7.0 2025-09-29 11:07:48 +00:00
Vladyslav Nikonov a660d7f960 chore(release): remove leading zero from nuget version (#1000)
leading zero in Nuget version caused CI to fail on ffi crate build:

```
 error: invalid leading zero in minor version number
 --> ffi/Cargo.toml:3:11
  |
3 | version = "2025.09.24"
  |           ^^^^^^^^^^^^
  |
error: failed to load manifest for workspace member `/Users/runner/work/IronRDP/IronRDP/ffi`
referenced by workspace at `/Users/runner/work/IronRDP/IronRDP/Cargo.toml`
```
2025-09-29 06:39:28 -04:00
Vladyslav Nikonov 3198abae2f chore(release): prepare for Devolutions.IronRdp v2025.09.24.0 (#998) 2025-09-25 08:52:17 -04:00
Alex Yusiuk 6127e13c83 fix(web): fix this.lastSentClipboardData being nulled (#992)
```js
await this.remoteDesktopService.onClipboardChanged(...)
```
Consumes the clipboard data we pass, so we need to clone the data to
prevent `this.lastSentClipboardData` from being null.
2025-09-24 08:49:32 +00:00
devolutionsbot 8dc41e2feb chore(release): prepare for publishing (#989) ironrdp-rdpsnd-native-v0.4.1 ironrdp-dvc-pipe-proxy-v0.2.1 ironrdp-v0.13.0 ironrdp-session-v0.7.0 ironrdp-server-v0.9.0 ironrdp-graphics-v0.6.0 2025-09-24 08:01:35 +00:00
dependabot[bot] 2994edf320 build(deps): bump bytesize from 2.0.1 to 2.1.0 (#995) 2025-09-24 02:03:05 -04:00
Alex Yusiuk ac2964d406 fix(web): send first clipboard only after the connection is established (#996)
Fix a bug where, when the clipboard is in automatic mode,
`iron-remote-desktop` could send the first clipboard PDU to
the server before the connection is established.
This packet was ignored, and the clipboard on the server
not synced with the current host's clipboard.
2025-09-24 02:02:21 -04:00
dependabot[bot] 0b39078c26 build(deps): bump inquire from 0.7.5 to 0.8.0 (#984) 2025-09-19 12:31:19 +00:00
Alex Yusiuk 4f518f0a7b chore: add infinite_loop clippy style and readability lint (#981)
> Checks for infinite loops in a function where the return type is not !
and lint accordingly.
> Making the return type ! serves as documentation that the function
does not return. If the function is not intended to loop infinitely,
then this lint may detect a bug.
2025-09-19 12:14:08 +00:00
Alex Yusiuk 0141178ae2 chore: add empty_enum_variants_with_brackets clippy style and readability lint (#980)
> Finds enum variants without fields that are declared with empty
brackets.
> Empty brackets after a enum variant declaration are redundant and can
be omitted, and it may be desirable to do so consistently for style.
2025-09-19 11:58:28 +00:00
Alex Yusiuk c1fcf7a0c3 chore(release): prepare for iron-remote-desktop v0.10.0 (#991) npm-iron-remote-desktop-v0.10.0 2025-09-19 11:53:55 +00:00
Alex Yusiuk c417012b38 refactor: add deref_by_slicing clippy style and readability lint (#979)
> Checks for slicing expressions which are equivalent to dereferencing
the value.
> Some people may prefer to dereference rather than slice.
2025-09-19 11:43:30 +00:00
Alex Yusiuk 42fbd5f378 refactor: add multiple_inherent_impl clippy style and readability lint (#978)
From the lint
[documentation](https://rust-lang.github.io/rust-clippy/master/index.html#/multiple_inherent_impl):
> Checks for multiple inherent implementations of a struct
> Splitting the implementation of a type makes the code harder to
navigate.
2025-09-19 11:27:49 +00:00
Alex Yusiuk 4cf86ffdba refactor: add map_with_unused_argument_over_ranges clippy style and readability lint (#982)
> Checks for Iterator::map over ranges without using the parameter which
could be more clearly expressed using std::iter::repeat(...).take(...)
or std::iter::repeat_n.
2025-09-19 11:05:53 +00:00
Alex Yusiuk 6c0014d5b3 fix(web)!: rework error handling (#975)
Improves the error handling in _iron-remote-desktop_ by
replacing the session events with throwing errors for terminated and
error events and callbacks for warnings and the clipboard remote update
event.
2025-09-19 11:05:20 +00:00
Vladyslav Nikonov 3182a018e2 fix(dvc-pipe-proxy): add blocking logic for sending dvc pipe messages 2025-09-19 07:52:43 +00:00
Vladyslav Nikonov 5f52a44b84 fix(dvc-pipe-proxy): change dvc proxy pipe mode from Message to Byte on Windows (#986) 2025-09-18 19:40:23 +00:00
dependabot[bot] e6421b509c build(deps): bump the patch group across 1 directory with 5 updates (#990) 2025-09-18 13:36:15 -04:00
Benoît Cortier e5042a7d81 build(deps): replace opus by opus2 (#985)
opus is unmaintained and ponits to a 4-year old commit of the opus C
library. This does not compile anymore on our CI, because their
CMakeList.txt requires an older version of cmake that is not available
in the runners we use. opus2 is a fork that points to a more recent
version of it.
2025-09-18 15:20:15 +00:00
Alex Yusiuk fe47ced857 chore: add pub_without_shorthand clippy style and readability lint (#977)
[pub_without_shorthand](https://rust-lang.github.io/rust-clippy/master/index.html#/pub_without_shorthand):

> Checks for usage of pub(<loc>) without in.
> Note: As you cannot write a module’s path in pub(<loc>), this will
only trigger on pub(super) and the like.
2025-09-11 11:53:10 +00:00
Alex Yusiuk 630525deae refactor!: enable unwrap_used clippy correctness lint (#965)
Co-authored-by: Benoît CORTIER <git.divisible626@passmail.com>
2025-09-11 11:41:02 +00:00
Alex Yusiuk a8b6fb1d74 chore: add suspicious_xor_user_as_pow clippy correctness lint (#973)
From the lint
[docs](https://rust-lang.github.io/rust-clippy/stable/index.html#suspicious_xor_used_as_pow):
> Warns for a Bitwise XOR (^) operator being probably confused as a
powering. It will not trigger if any of the numbers are not in decimal.
It’s most probably a typo and may lead to unexpected behaviours.
2025-09-10 13:04:12 +00:00
Alex Yusiuk 898df8c0fa chore: add unused_result_ok clippy correctness lint (#974)
This lint checks for calls to `Result::ok()` without using the returned
`Option`.
2025-09-10 08:47:12 -04:00