I took a WSL1 environment containing Bullseye and performed a downgrade to Buster per https://wiki.debian.org/SystemDowngrade. Apt isn't complaining at all, so it's probably a good enough buster.
apt install librsvg2-dev build-essential fakeroot devscripts
apt build-dep librsvg2-dev
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"
which rustc
Just say yes to everything. And check that rustc gives the right one.
mkdir ~/build
cd ~/build
wget https://download.gnome.org/sources/librsvg/2.56/librsvg-2.56.0.tar.xz
tar xf librsvg-2.56.0.tar.xz
cd librsvg-2.56.0
wget https://gist.github.com/Artoria2e5/458f3dfcf5aa68272648c1dc21c039ae/raw/b47d6cba34e0fe6f29acaff80c17813afcde943f/crime.patch
patch -Np1 < ../crime.patch
autoreconf -fi
./configure --disable-gtk-doc --disable-pixbuf-loader --disable-shared --disable-static
make
Just get the rsvg-convert
binary out of there. It has no dependency inside the build directory.