Updating hashes
Summary: GitHub commits:
https://github.com/facebook/CacheLib/commit/f2f83ceb43294e383bc4524bc294b681910737eb https://github.com/facebook/fb303/commit/ce8af6280bc7ce336ddc05064d0165cfdcb24b58 https://github.com/facebook/fbthrift/commit/da27a027f856b63281e2c36b1a35d3c38a7229cf https://github.com/facebook/folly/commit/e243181570d06e6e746bc3995f0745f0e3dfd532 https://github.com/facebook/hermes/commit/36ab30689cf94a66203f5f99d9a4dd4d7930c515 https://github.com/facebook/mvfst/commit/3fc45489431dea92fbbdbf6d74161da416178f1a https://github.com/facebook/proxygen/commit/4954ad12adc177a9654ef7b5f9c30a1bdc6d6658 https://github.com/facebook/pyrefly/commit/b4cf749b51534e0886d9568da126cbd7dae784cd https://github.com/facebook/wangle/commit/ab25c8c58a444e62adb5ba9cb59aa25d4aa1fb45 https://github.com/facebookexperimental/edencommon/commit/f7388c02828151cd5371e1a6d572f741aa7a31f2 https://github.com/facebookexperimental/rust-shed/commit/aaefb4dbc2685df0a63721e3ff2b45e0f5c3b124 https://github.com/facebookincubator/fizz/commit/7de8f52e9878206cd3a0192d9b4295cd58cd2ac9
Reviewed By: ajb85
fbshipit-source-id: 2f63954b9a484cc3590def6cf8ac9d41494bc41f
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
OpenR: Open Routing
Open Routing, OpenR, is Facebook’s internally designed and developed Interior Routing Protocol/Platform. OpenR was originally designed and built for performing routing on the Terragraph mesh network. OpenR’s flexible design has led to its adoption in other networks, including Facebook’s new WAN network, Express Backbone.
Documentation
Please refer to our extensive Documentation to get started with OpenR.
Library Examples
Please refer to the
examplesdirectory to see some useful ways to leverage the libraries to build software to run with OpenR.Resources
Contribute
Take a look at
Developer GuideandCONTRIBUTING.mdto get started contributing. The Developer Guide outlines best practices for code contribution and testing. Any single change should be well tested for regressions and version compatibility.Code of Conduct
The code of conduct is described in
CODE_OF_CONDUCT.mdRequirements
We have tried
OpenRon Ubuntu 24.04 LTS (earlier versions are no longer supported) and CentOS Stream 9. OpenR should work on all Linux based platforms.Build
Repo Directory Structure
At the top level of this repo are the
buildandopenrdirectories. Under the former is a tool,gen, that contains scripts for building the project. Theopenrdirectory contains the source for the project.Dependencies
OpenR requires these dependencies for your system and follows the traditional cmake build steps below.
cmakegflagsgtestlibsodiumzstdfollyfbthriftre2-develOne Step Build - Ubuntu
We’ve provided a script,
build/build_openr.sh, tested on Ubuntu LTS releases. It usesgendeps.pyto install all necessary dependencies and compile and install the OpenR C++ binaries. Please modify the script as needed for your platform. Also, note that some library dependencies require a newer version than provided by the default package manager on the system and hence we are compiling them from source instead of installing via the package manager. Please see the script for those instances and the required versions.Build Steps
If you make any changes you can run
cmake ../openrandmakefrom the build directory to build openr with your changes.Installing
The install step installs the Open/R binaries, generated Thrift libraries, source and generated Thrift headers under
/opt/facebook/openr, and Python modules in your Python’ssite-packagesdirectory. Open/R executables and tests link the granular component libraries directly; the build does not install a monolithic Open/R implementation library. Note: thebuild_openr.shscript will run this step for yougetdeps.pyto install elsewherebuild_openr.shInstalling Python Libraries + CLI
The Docker build runs
build/build_breeze.shto generate modern Thrift Python bindings, install their matchingfbthrift-pythonruntime, and install thebreezeCLI in an isolated virtual environment.openr/py/setup.pypackages the staged source and generated bindings; it is not a standalone source-tree build entry point.Docker Building / Usage
OpenR now has a
Dockerfile. It usesgendeps.pyto build all dependencies + OpenR.Running
You can specify a config file by bind mount a directory with a
openr.cfgfile in /config/configinto the container/config/openr.confLicense
OpenR is MIT licensed.