The file crates/aqd-utils/src/borsh_encoding.rs has been directly copied from solang. Although solang exposes the discriminator function, it doesn't expose BorshToken.
To reduce reliance on solang—a significant dependency—and aim for a more lightweight aqd crate, it's essential to reconsider the structure of aqd.
The objective is to for solang to depend on aqd-solana instead. This adjustment would be feasible when solana crates don't cause dependency conflicts with solang.
The file
crates/aqd-utils/src/borsh_encoding.rs
has been directly copied fromsolang
. Althoughsolang
exposes thediscriminator
function, it doesn't exposeBorshToken
.To reduce reliance on
solang
—a significant dependency—and aim for a more lightweightaqd
crate, it's essential to reconsider the structure ofaqd
. The objective is to forsolang
to depend onaqd-solana
instead. This adjustment would be feasible when solana crates don't cause dependency conflicts with solang.More about solana crates dependency issue: #5