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>
This commit is contained in:
Marc-André Lureau 2024-10-29 15:27:02 +04:00 committed by Benoît Cortier
parent d1b95676f0
commit 3c503cb2d1
5 changed files with 10 additions and 11 deletions

View file

@ -16,7 +16,7 @@ doctest = false
test = false
[features]
default = ["core", "pdu", "connector", "session"]
default = ["core", "pdu"]
core = ["dep:ironrdp-core"]
pdu = ["dep:ironrdp-pdu"]
cliprdr = ["dep:ironrdp-cliprdr"]
@ -50,9 +50,7 @@ ironrdp-displaycontrol = { workspace = true, optional = true }
[dev-dependencies]
ironrdp-blocking.workspace = true
ironrdp-server.workspace = true
ironrdp-cliprdr-native.workspace = true
ironrdp-tls = { workspace = true, features = ["rustls"] }
anyhow = "1"
async-trait = "0.1"
bmp = "0.5"
@ -60,7 +58,6 @@ pico-args = "0.5"
x509-cert = { version = "0.2", default-features = false, features = ["std"] }
tracing.workspace = true
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
tokio = { version = "1.40", features = ["full"] }
tokio-rustls = "0.26"
rand = "0.8"
@ -71,11 +68,12 @@ all-features = true
[[example]]
name = "screenshot"
doc-scrape-examples = true
required-features = ["session"]
[[example]]
name = "server"
doc-scrape-examples = true
required-features = ["cliprdr", "rdpsnd"]
required-features = ["cliprdr", "rdpsnd", "server"]
[lints]
workspace = true

View file

@ -16,15 +16,15 @@ use ironrdp::cliprdr::backend::{CliprdrBackend, CliprdrBackendFactory};
use ironrdp::connector::DesktopSize;
use ironrdp::rdpsnd::pdu::ClientAudioFormatPdu;
use ironrdp::rdpsnd::server::{RdpsndServerHandler, RdpsndServerMessage};
use ironrdp_cliprdr_native::StubCliprdrBackend;
use ironrdp_server::{
use ironrdp::server::{
tokio::time::{self, sleep, Duration},
tokio::{self, sync::mpsc::UnboundedSender},
BitmapUpdate, CliprdrServerFactory, Credentials, DisplayUpdate, KeyboardEvent, MouseEvent, PixelFormat, PixelOrder,
RdpServer, RdpServerDisplay, RdpServerDisplayUpdates, RdpServerInputHandler, ServerEvent, ServerEventSender,
SoundServerFactory, TlsIdentityCtx,
};
use ironrdp_cliprdr_native::StubCliprdrBackend;
use rand::prelude::*;
use tokio::sync::mpsc::UnboundedSender;
use tokio::time::{self, sleep, Duration};
const HELP: &str = "\
USAGE: