1. 23 Aug, 2017 1 commit
  2. 21 Aug, 2017 1 commit
  3. 31 Jul, 2017 6 commits
  4. 21 Jul, 2017 1 commit
  5. 20 May, 2017 3 commits
  6. 26 Apr, 2017 1 commit
  7. 22 Mar, 2017 2 commits
  8. 27 Feb, 2017 1 commit
  9. 22 Feb, 2017 2 commits
  10. 21 Feb, 2017 1 commit
  11. 08 Feb, 2017 1 commit
  12. 07 Feb, 2017 1 commit
  13. 02 Feb, 2017 2 commits
  14. 16 Dec, 2016 1 commit
  15. 01 Dec, 2016 1 commit
  16. 08 Nov, 2016 1 commit
  17. 01 Nov, 2016 3 commits
    • Federico Mena Quintero's avatar
      marker.rs: Use cairo_sys::cairo_path_t correctly · 078a6ad1
      Federico Mena Quintero authored
      I was requesting the cairo-rs crate somewhat incorrectly in Cargo.toml,
      and not requesting cairo-sys-rs at all.  Thus, I thought I needed to
      patch cairo-rs to let me access a cairo_path_t.  It turns out it's
      already available; one just has to declare the crate correctly...
      078a6ad1
    • Federico Mena Quintero's avatar
      Cargo.toml: Use my git repo of gtk-rs/cairo for now · 6eb8d230
      Federico Mena Quintero authored
      We need to be able to wrap cairo_path_t, and the stock cairo binding doesn't
      allow that.
      6eb8d230
    • Federico Mena Quintero's avatar
      marker.rs: Port rsvg_rust_render_markers() to Rust · 035d6c24
      Federico Mena Quintero authored
      This is the interesting part of the old rsvg_render_markers() from C.
      
      That function in C now remains only as a wrapper that extracts a few
      values from the RsvgDrawingCtx and passes them on to
      rsvg_rust_render_markers().  I'll probably add accessor functions later
      so that this kind of wrapper is not necessary.
      
      Also, change the Cargo.toml to build a staticlib.  Re-enable the Rust
      build in the master Makefile.am.
      
      And it works!  The tests pass!
      
      The Makefile.am is fishy; it uses rust/target/debug/*.a instead of
      automatically switching between "debug" and "release".  Also, this is
      not yet integrated into configure.ac at all.
      
      But it works!
      035d6c24
  18. 28 Oct, 2016 1 commit
    • Federico Mena Quintero's avatar
      First cut at building the Rust library from Automake · d4247fc0
      Federico Mena Quintero authored
      This uses a .PHONY rule to just run cargo every time.  There is no
      addition to "make clean" yet.
      
      The resulting librsvg_internals.so is trivially linked into the LIBADD
      for the main librsvg library.
      
      I don't know how to handle "cargo build --release" just for the final
      version, while "cargo build" normally.  For the C stuff I just pass
      CFLAGS by hand to autogen.sh.
      
      This is not integrated into configure.ac yet!
      d4247fc0
  19. 26 Oct, 2016 1 commit
  20. 25 Oct, 2016 1 commit
    • Federico Mena Quintero's avatar
      Start a branch to port bits of librsvg to Rust · f27a8c90
      Federico Mena Quintero authored
      I want parts of librsvg to be rewritten in Rust so that the library's
      internals are written in a safe language.  It should be possible to
      preserve the public C API, while internally parts of librsvg are
      written in Rust.
      
      I don't know how to integrate the Rust-built library into the C one yet,
      so this is a work in progress.
      
      To begin, we have path_to_segments() from rsvg-marker.c.  The rest of
      the marker-drawing machinery is still missing; and the ported version
      of that function needs some tests - it doesn't do the right thing with a
      closepath operator.
      f27a8c90