Running a rust app with libwebkit2gtk dependency

I was trying the passthrough under app, but the snap build was rejected in the publishing step.
What version of snapcraft should I be using this? Maybe I should try this on 2.43