{"id":17997978,"url":"https://github.com/robinlinden/hastur","last_synced_at":"2025-03-26T04:31:37.920Z","repository":{"id":37005860,"uuid":"332910459","full_name":"robinlinden/hastur","owner":"robinlinden","description":"A web browser.","archived":false,"fork":false,"pushed_at":"2025-03-17T22:05:35.000Z","size":4153,"stargazers_count":31,"open_issues_count":38,"forks_count":10,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-18T06:48:59.603Z","etag":null,"topics":["bazel","browser","browser-engine","cpp"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robinlinden.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"robinlinden"}},"created_at":"2021-01-25T23:12:18.000Z","updated_at":"2025-03-17T21:44:55.000Z","dependencies_parsed_at":"2023-10-16T09:11:17.277Z","dependency_job_id":"2772b007-ee2d-49db-81d5-9187e8c7bb4b","html_url":"https://github.com/robinlinden/hastur","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/robinlinden%2Fhastur","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinlinden%2Fhastur/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinlinden%2Fhastur/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinlinden%2Fhastur/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robinlinden","download_url":"https://codeload.github.com/robinlinden/hastur/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245589265,"owners_count":20640254,"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":["bazel","browser","browser-engine","cpp"],"created_at":"2024-10-29T21:23:19.328Z","updated_at":"2025-03-26T04:31:37.906Z","avatar_url":"https://github.com/robinlinden.png","language":"C++","funding_links":["https://github.com/sponsors/robinlinden"],"categories":[],"sub_categories":[],"readme":"# Toy browser engine\n\n[![codecov](https://codecov.io/gh/robinlinden/hastur/branch/master/graph/badge.svg?token=1H16FDJ3ML)][codecov]\n\n## Building\n\n### Requirements\n\n#### Compiler\n\nRight now GCC 13, Clang 17, and MSVC are tested against. The project makes use\nof C++23 features, so a reasonably recent compiler is required.\n\n#### Build system\n\n[Bazel][bazel] is used as the build system. I recommend using\n[Bazelisk][bazelisk] as that will pick up the Bazel version to use from the\n`.bazelversion` file in the repository root.\n\nPer-developer configuration (e.g. compiler used and build type) is managed in\na gitignored `.bazelrc.local` file. To set this up for your environment, copy\n`.bazelrc.local.example` to `.bazelrc.local` and edit to suit your compiler of\nchoice.\n\n### Process\n\nThe following assumes that you either have Bazel or Bazelisk under the name\n`bazel` on your `PATH` and that you have set up your `.bazelrc.local` file.\n\n#### Listing build targets\n\n`bazel query //...`\n\n#### Building all targets\n\n`bazel build //...`\n\n#### Building a single target\n\n`bazel build //html`\n\n#### Running all tests\n\n`bazel test //...`\n\n#### Running the browser engine\n\n`bazel run //browser`\n\n#### Generate json compilation database\n\n`bazel run refresh_compile_commands --@rules_python//python/config_settings:bootstrap_impl=system_python`\n\n### Misc\n\n#### clangd on Windows\n\nIf using clangd on Windows, you need work around [clangd not supporting\n/std:c++latest][clangd-on-windows] by setting up a `.clangd` configuration\ncontaining\n\n```\nCompileFlags:\n  Add: [\"-std:c++latest\"]\n```\n\nto force its inclusion and avoid your editor displaying errors for every newish\nC++ feature.\n\n[bazel]: https://bazel.build\n[bazelisk]: https://github.com/bazelbuild/bazelisk\n[clangd-on-windows]: https://github.com/clangd/clangd/issues/527\n[codecov]: https://app.codecov.io/gh/robinlinden/hastur\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinlinden%2Fhastur","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobinlinden%2Fhastur","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinlinden%2Fhastur/lists"}