Skip to content

Implement svg switch conditions in rust

Paolo Borelli requested to merge pborelli/librsvg:cond-rs into master

Move the implementation of switch conditionals (requiredFeatures, requiredFeatures and systemLanguage attributes)to rust.

NOTE: these are my very first steps with rust, I tried to be as idiomatic as possible, but please point out any issue. I will comment on my own patch to point out a few things.

Apart from the rustification, the positive aspects are that the new code:

  1. supports space-separated requiredFeatures and Extensions as described in the spec
  2. has unit tests for all three attributes

Merge request reports