Cargo Features

pso2packetlib has no features set by default.

[dependencies]
pso2packetlib = { version = "0.1.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, 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, login::BannerListPacket.unk2, missions::Unk2Struct.unk2, party::AddMemberPacket.unk17, party::PartyEntry.unk11, spawn::CharacterSpawnNGSPacket

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