Skip to content

Replacing C libraries with Rust equivalents - student project - #4215

Closed
ankit3005 wants to merge 29 commits into
servo:masterfrom
ankit3005:master
Closed

ankit3005 wants to merge 29 commits into
servo:masterfrom
ankit3005:master

Conversation

@ankit3005

Copy link
Copy Markdown
Contributor

We are a group of students at NCSU.
As part of a Mozilla student project we have replaced the use of rust-freetype and rust-stb-image libraries in servo with freetype-rs and image respectively.

The changes are described in more detail at http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2014/final_M1455_yaaa

Review on Reviewable

@jdm jdm added the S-needs-code-changes Changes have not yet been made that were requested by a reviewer. label Dec 4, 2014
@jdm

jdm commented Dec 29, 2014

Copy link
Copy Markdown
Member

@ankit3005 @ynandak Are you planning on continuing this work? It's a shame to have it just sitting here.

@ankit3005

Copy link
Copy Markdown
Contributor Author

@jdm We'll pick this up and see it to closure. This completely slipped through the cracks after the end of the semester here.

@jdm

jdm commented Dec 31, 2014

Copy link
Copy Markdown
Member

Thanks @ankit3005!

@jdm

jdm commented Jan 31, 2015

Copy link
Copy Markdown
Member

Any update here?

@jdm jdm added the S-needs-new-owner The PR has been abandoned by the original author. label Feb 24, 2015
Ms2ger pushed a commit that referenced this pull request Feb 28, 2015
This extracts some independently useful parts of
<#4215>.
bors-servo pushed a commit that referenced this pull request Feb 28, 2015
This extracts some independently useful parts of
<#4215>.
@kmcallister kmcallister self-assigned this Mar 25, 2015
@kmcallister kmcallister removed the S-needs-new-owner The PR has been abandoned by the original author. label Mar 25, 2015
@kmcallister

Copy link
Copy Markdown
Contributor

I'll work on merging this.

@kmcallister

Copy link
Copy Markdown
Contributor

I have a branch that contains a rebased version of the image-related changes, with style fixes and some other improvements. It's untested at the moment because I couldn't easily find a version of Piston's image library that builds with Servo's rustc.

kmcallister added a commit to kmcallister/servo that referenced this pull request Mar 26, 2015
We still use libpng for `servo -o` and the reftest runner.

Based on servo#4215. Fixes servo#3368.
@kmcallister

Copy link
Copy Markdown
Contributor

It's now building and passing most but not all tests.

@kmcallister

Copy link
Copy Markdown
Contributor

Blocked on image-rs/image#199 for Acid2.

@kmcallister

Copy link
Copy Markdown
Contributor

That's fixed now, but we'll probably need a rustup before we can use a new enough version of the image library.

kmcallister added a commit to kmcallister/servo that referenced this pull request Apr 1, 2015
We still use libpng for `servo -o` and the reftest runner.

Based on servo#4215. Fixes servo#3368.
@kmcallister

Copy link
Copy Markdown
Contributor

Note that freetype_rs::ffi is a re-export of freetype_sys. It's still a valuable change, but we should switch to the high-level bindings eventually.

@jdm

jdm commented May 7, 2015

Copy link
Copy Markdown
Member

@kmcallister Upgrade accomplished, so we should be safe to switch to the new image library now.

@kmcallister

Copy link
Copy Markdown
Contributor

Yep, working on it right now :)

kmcallister added a commit to kmcallister/servo that referenced this pull request May 7, 2015
We still use libpng for `servo -o` and the reftest runner.

Based on servo#4215. Fixes servo#3368.
@waddlesplash

Copy link
Copy Markdown

@kmcallister Should this be closed as invalid/moved elsewhere, then?

@jdm

jdm commented May 14, 2015

Copy link
Copy Markdown
Member

Yep.

@jdm jdm closed this May 14, 2015
jrmuizel pushed a commit to jrmuizel/gecko-cinnabar that referenced this pull request Jun 12, 2017
…ile-img); r=jdm

This extracts some independently useful parts of
<servo/servo#4215>.

Source-Repo: https://github.com/servo/servo
Source-Revision: 16bc4749af685c7a1728858c15ead011ab415615
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Sep 30, 2019
…ile-img); r=jdm

This extracts some independently useful parts of
<servo/servo#4215>.

Source-Repo: https://github.com/servo/servo
Source-Revision: 16bc4749af685c7a1728858c15ead011ab415615

UltraBlame original commit: d38e32b4686561515cc1d6727659e4074a54fe76
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 1, 2019
…ile-img); r=jdm

This extracts some independently useful parts of
<servo/servo#4215>.

Source-Repo: https://github.com/servo/servo
Source-Revision: 16bc4749af685c7a1728858c15ead011ab415615

UltraBlame original commit: d38e32b4686561515cc1d6727659e4074a54fe76
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 1, 2019
…ile-img); r=jdm

This extracts some independently useful parts of
<servo/servo#4215>.

Source-Repo: https://github.com/servo/servo
Source-Revision: 16bc4749af685c7a1728858c15ead011ab415615

UltraBlame original commit: d38e32b4686561515cc1d6727659e4074a54fe76
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-needs-code-changes Changes have not yet been made that were requested by a reviewer. S-needs-rebase There are merge conflict errors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants