{"id":16960128,"url":"https://github.com/dflemstr/v8-rs","last_synced_at":"2025-04-07T15:11:01.050Z","repository":{"id":57671416,"uuid":"67560486","full_name":"dflemstr/v8-rs","owner":"dflemstr","description":"An idiomatic Rust wrapper for the V8 Javascript engine","archived":false,"fork":false,"pushed_at":"2018-04-21T11:19:47.000Z","size":5544,"stargazers_count":108,"open_issues_count":9,"forks_count":15,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-31T14:11:30.316Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dflemstr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-07T01:27:51.000Z","updated_at":"2025-03-09T11:45:25.000Z","dependencies_parsed_at":"2022-08-27T03:24:52.002Z","dependency_job_id":null,"html_url":"https://github.com/dflemstr/v8-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dflemstr%2Fv8-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dflemstr%2Fv8-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dflemstr%2Fv8-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dflemstr%2Fv8-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dflemstr","download_url":"https://codeload.github.com/dflemstr/v8-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247675607,"owners_count":20977378,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T22:47:12.156Z","updated_at":"2025-04-07T15:11:01.030Z","avatar_url":"https://github.com/dflemstr.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `v8-rs` [![Build Status](https://travis-ci.org/dflemstr/v8-rs.svg?branch=master)](https://travis-ci.org/dflemstr/v8-rs) [![Crates.io](https://img.shields.io/crates/v/v8.svg?maxAge=3600)](https://crates.io/crates/v8) [![codecov](https://codecov.io/gh/dflemstr/v8-rs/branch/master/graph/badge.svg)](https://codecov.io/gh/dflemstr/v8-rs) [![Language (Rust)](https://img.shields.io/badge/powered_by-Rust-blue.svg)](http://www.rust-lang.org/)\n\n**Note:** This library is not actively maintained.  I (dflemstr) have\nattempted keeping it up to date with the latest mainline V8 versions,\nbut the maintenance burden is too high.  The path forward would be to\nmore directly map the C++ API of V8 via `bindgen` and go forward from\nthere to try to automate more of the API surface mapping, but several\nattempts at doing so by me have failed.  Pull requests welcome!\n\nThis is a wrapper around the [V8](https://developers.google.com/v8/)\nJavascript engine, used for example in\nthe [Google Chrome browser](https://www.google.com/chrome/browser)\nor [Node.js](https://nodejs.org/en/).\n\n[Documentation](https://dflemstr.github.io/v8-rs)\n\n## Building\n\nIt is quite complicated to build V8.  This library has been tested\nagainst V8 5.4.x with GCC 6.x, but later versions might work.\n\n### Static / Shared\n\nBy default, this library links V8 statically.  There is a feature\ncalled `shared` that builds it by linking to `libv8.so` (and related\nlibraries like `libicu-i10n.so`) instead.  There's usually little\nreason to link dynamically since the V8 ABI changes fairly frequently.\n\n### Ubuntu / Travis CI\n\nThe easiest way to build this library on Ubuntu or Travis CI is to use\na pre-packaged version of V8.  You need both `sudo` and Ubuntu Trusty\nor later to install a compatible one:\n\n``` yaml\nsudo: true\ndist: trusty\nlanguage: rust\n\naddons:\n  apt:\n    sources:\n      - sourceline: 'ppa:pinepain/libv8-5.4'\n      - ubuntu-toolchain-r-test\n    packages:\n      # Modern compilers\n      - gcc-6\n      - g++-6\n      # The V8 version that we want to bind\n      - libv8-5.4-dev\n      - libicu-dev\n\nenv:\n  global:\n    - CC=gcc-6\n    - CXX=g++-6\n```\n\n### Build tree\n\nYou can build a build tree using any supported build method that uses\nany combination of `depot_tools`, `make`, `gyp`, `ninja` and/or `gn`,\nbut `gn` hasn't been tested that extensively.\n\nYou should set `v8_use_snapshot=false`, loading snapshots is currently\nnot supported.\n\nYou should also not disable `i10n` support; this library assumes\n`libicu` was built at the same time as V8 or is compatible with V8.\n\nYou should build using `shared_library` if you want to build with the\n`shared` feature.\n\nSimply set the environment variable `V8_SOURCE` to the root of the\n`v8` checkout, and `V8_BUILD` to the build output in the tree (for\nexample `$V8_SOURCE/out/Release`) and the build Should Work®.  If not,\nplease figure out how to fix it and send a PR, it'll be impossible for\nme to test all of the V8 build configurations :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdflemstr%2Fv8-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdflemstr%2Fv8-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdflemstr%2Fv8-rs/lists"}