This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![feature(test)] | |
// Run with `cargo +nightly bench` | |
#[derive(facet::Facet)] | |
struct FacetPerson { | |
name: String, | |
age: u32, | |
} | |
use serde::{Deserialize, Serialize}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![feature(test)] | |
// Run with `cargo +nightly bench` | |
extern crate test; | |
#[cfg(test)] | |
mod tests { | |
use super::*; | |
use test::Bencher; | |
use facet_json::{from_str, to_json_string}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
lib, | |
stdenv, | |
fetchFromGitHub, | |
cmake, | |
pkg-config, | |
boost, | |
openssl, | |
zlib, | |
readline, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Building bootstrap | |
Compiling bootstrap v0.0.0 (/Users/niklaskorz/dev/rust/rust/src/bootstrap) | |
Finished `dev` profile [unoptimized] target(s) in 3.25s | |
WARNING: The `change-id` is missing in the `config.toml`. This means that you will not be able to track the major changes made to the bootstrap configurations. | |
NOTE: to silence this warning, add `change-id = 136941` at the top of `config.toml` | |
Generating unstable book md files (aarch64-apple-darwin) | |
Building stage0 tool unstable-book-gen (aarch64-apple-darwin) | |
Finished `release` profile [optimized] target(s) in 0.40s | |
Building stage0 tool rustbook (aarch64-apple-darwin) | |
Finished `release` profile [optimized] target(s) in 0.19s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Generating unstable book md files (aarch64-apple-darwin) | |
Building stage0 tool unstable-book-gen (aarch64-apple-darwin) | |
Updating crates.io index | |
Downloading crates ... | |
Downloaded cargo-platform v0.1.9 | |
Downloaded thiserror-impl v2.0.11 | |
Downloaded thiserror v1.0.69 | |
Downloaded thiserror-impl v1.0.69 | |
Downloaded num-traits v0.2.19 | |
Downloaded autocfg v1.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs }: | |
pkgs.zed-editor.overrideAttrs ( | |
finalAttrs: prevAttrs: { | |
version = "0.168.0"; | |
src = prevAttrs.src.override { | |
tag = "v${finalAttrs.version}-pre"; | |
hash = "sha256-GcsK64tJrEp1QVcLJV2xTWAzupmNXsMgzzW5KOEFqTI="; | |
}; | |
postPatch = | |
builtins.replaceStrings [ prevAttrs.version ] [ finalAttrs.version ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/nix/store/59kpxafq7nqfg32ygybzg65a2q2m3dlp-libffi-3.4.6 | |
/nix/store/5s3b3s1kc2i2y9j8zcm03nphg7lmcxrg-zlib-1.3.1 | |
/nix/store/5wjj1f3pa1ndi3kvskm1fcs9kdy2xajf-bash-5.2p37 | |
/nix/store/86vs8mxfpzzw6vjrqv1ml9734qz83g8h-libcxx-19.1.5 | |
/nix/store/m3jzhwg8h7fhy913lh27rmlpp36szg8v-libiconv-107 | |
/nix/store/69lid8xyqwl0fx6f4czvdbqwjl85bm6a-gettext-0.22.5 | |
/nix/store/bzx98yb86791m7jbwinz23m0xjn2inag-pcre2-10.44 | |
/nix/store/gd2546zkaizg9cfgq3rfawvr2d9xxfk5-libresolv-83 | |
/nix/store/ncqqqxrccy0dasj3hy2fg81pgghpmdmx-glib-2.82.1 | |
/nix/store/pkic7ygf0sz3j21457qslmvdssw40n5y-graphite2-1.3.14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cachix/cuda-maintainers.nix (create through `cachix use cuda-maintainers`) | |
{ | |
nix = { | |
settings = { | |
substituters = [ | |
"https://cuda-maintainers.cachix.org" | |
]; | |
trusted-public-keys = [ | |
"cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E=" | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const instance = "https://rheinneckar.social"; | |
async function getLocalPost(url) { | |
const encodedUrl = encodeURIComponent(url); | |
const resp = await fetch(`${instance}/api/v2/search?q=${encodedUrl}&resolve=true&limit=1`, { credentials: "include" }); | |
const data = await resp.json(); | |
const status = data.statuses[0]; | |
const id = status.id; | |
const acct = status.account.acct; | |
return `${instance}/${acct}/${id}`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
www.rheinneckar.social { | |
redir https://rheinneckar.social{uri} | |
} | |
rheinneckar.social { | |
encode zstd gzip | |
reverse_proxy /api/v1/streaming* 127.0.0.1:4000 | |
reverse_proxy 127.0.0.1:3000 | |
} |
NewerOlder