Skip to content

Commit 3c503cb

Browse files
elmarcoCBenoit
authored andcommitted
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>
1 parent d1b9567 commit 3c503cb

File tree

5 files changed

+10
-11
lines changed

5 files changed

+10
-11
lines changed

Cargo.lock

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/ironrdp-client/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ native-tls = ["ironrdp-tls/native-tls"]
2929

3030
# Protocols
3131
ironrdp = { workspace = true, features = [
32+
"session",
3233
"input",
3334
"graphics",
3435
"dvc",

crates/ironrdp-web/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ panic_hook = ["dep:console_error_panic_hook"]
2525

2626
# Protocols
2727
ironrdp = { workspace = true, features = [
28+
"connector",
29+
"session",
2830
"input",
2931
"graphics",
3032
"dvc",

crates/ironrdp/Cargo.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ doctest = false
1616
test = false
1717

1818
[features]
19-
default = ["core", "pdu", "connector", "session"]
19+
default = ["core", "pdu"]
2020
core = ["dep:ironrdp-core"]
2121
pdu = ["dep:ironrdp-pdu"]
2222
cliprdr = ["dep:ironrdp-cliprdr"]
@@ -50,17 +50,14 @@ ironrdp-displaycontrol = { workspace = true, optional = true }
5050

5151
[dev-dependencies]
5252
ironrdp-blocking.workspace = true
53-
ironrdp-server.workspace = true
5453
ironrdp-cliprdr-native.workspace = true
55-
ironrdp-tls = { workspace = true, features = ["rustls"] }
5654
anyhow = "1"
5755
async-trait = "0.1"
5856
bmp = "0.5"
5957
pico-args = "0.5"
6058
x509-cert = { version = "0.2", default-features = false, features = ["std"] }
6159
tracing.workspace = true
6260
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
63-
tokio = { version = "1.40", features = ["full"] }
6461
tokio-rustls = "0.26"
6562
rand = "0.8"
6663

@@ -71,11 +68,12 @@ all-features = true
7168
[[example]]
7269
name = "screenshot"
7370
doc-scrape-examples = true
71+
required-features = ["session"]
7472

7573
[[example]]
7674
name = "server"
7775
doc-scrape-examples = true
78-
required-features = ["cliprdr", "rdpsnd"]
76+
required-features = ["cliprdr", "rdpsnd", "server"]
7977

8078
[lints]
8179
workspace = true

crates/ironrdp/examples/server.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ use ironrdp::cliprdr::backend::{CliprdrBackend, CliprdrBackendFactory};
1616
use ironrdp::connector::DesktopSize;
1717
use ironrdp::rdpsnd::pdu::ClientAudioFormatPdu;
1818
use ironrdp::rdpsnd::server::{RdpsndServerHandler, RdpsndServerMessage};
19-
use ironrdp_cliprdr_native::StubCliprdrBackend;
20-
use ironrdp_server::{
19+
use ironrdp::server::{
20+
tokio::time::{self, sleep, Duration},
21+
tokio::{self, sync::mpsc::UnboundedSender},
2122
BitmapUpdate, CliprdrServerFactory, Credentials, DisplayUpdate, KeyboardEvent, MouseEvent, PixelFormat, PixelOrder,
2223
RdpServer, RdpServerDisplay, RdpServerDisplayUpdates, RdpServerInputHandler, ServerEvent, ServerEventSender,
2324
SoundServerFactory, TlsIdentityCtx,
2425
};
26+
use ironrdp_cliprdr_native::StubCliprdrBackend;
2527
use rand::prelude::*;
26-
use tokio::sync::mpsc::UnboundedSender;
27-
use tokio::time::{self, sleep, Duration};
2828

2929
const HELP: &str = "\
3030
USAGE:

0 commit comments

Comments
 (0)