Cargo Features

pso2packetlib has no features set by default.

[dependencies]
pso2packetlib = { version = "0.3.0", features = ["derive", "connection", "proxy", "ppac", "ngs_packets", "item_attrs", "vita_enc", "base_enc", "ngs_enc", "serde", "tokio", "split_connection"] }
derive
connection split_connection?

Enables rsa

Affects pso2packetlib::connection

proxy

Affects protocol::ProxyPacket

ppac

Enables zstd

Affects pso2packetlib::ppac

ngs_packets

Affects chat::ChatMessage.unk5, chat::ChatMessage.unk6, flag::AccountFlagsPacket.unk, flag::CharacterFlagsPacket.unk, flag::Unk2315Packet.unk2, items::EquipItemPacket.unk3, items::EquipItemPacket.unk4, items::UnequipItemPacket.unk2, items::UnequipItemPacket.unk3, items::LoadEquipedPacket.unk3, items::LoadEquipedPacket.unk4, items::Item.unk, items::WeaponItemNGS, items::UnitItemNGS, items::ClothingNGSItem, items::ConsumableNGSItem, items::CamoNGSItem, login::UserInfoNGSPacket, login::Unk116FPacket.unk3, login::BannerListPacket.unk1

item_attrs

Affects models::item_attrs

vita_enc

Enables rand and rc4

Affects encryption::Rc4Enc, encryption::Rc4Dec, encryption::encrypt

base_enc

Enables aes, cbc, hmac, rand, and sha2

Affects encryption::Aes, encryption::encrypt

ngs_enc

Enables aes, cbc, rand, sha2, and zstd

Affects encryption::AesNgs, encryption::encrypt

serde

Enables serde, serde of bitflags and half

tokio

Enables tokio

split_connection = connection

Affects connection::ConnectionRead, connection::ConnectionWrite, encryption::EncryptorType, encryption::DecryptorType