Skip to content

Commit ebc9f72

Browse files
committed
Add crates.io benchmark
1 parent 9cae27a commit ebc9f72

File tree

1,839 files changed

+129090
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,839 files changed

+129090
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://github.com/Turbo87/heroku-buildpack-crates-io#9f7dc067dcda506ea94ca2d77f863588c5558241
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./.gitignore
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
[*]
8+
end_of_line = lf
9+
charset = utf-8
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true
12+
indent_style = space
13+
indent_size = 4
14+
15+
[*.{js,ts}]
16+
indent_size = 2
17+
18+
[*.json]
19+
indent_size = 2
20+
21+
[*.hbs]
22+
insert_final_newline = false
23+
indent_size = 2
24+
25+
[*.html]
26+
indent_size = 2
27+
28+
[*.{diff,md}]
29+
trim_trailing_whitespace = false
30+
31+
[*.{yml,yaml}]
32+
indent_size = 2
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
/**
3+
Ember CLI sends analytics information by default. The data is completely
4+
anonymous, but there are times when you might want to disable this behavior.
5+
6+
Setting `disableAnalytics` to true will prevent any data from being sent.
7+
*/
8+
"disableAnalytics": false
9+
}
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# Location of the *postgres* database. For example, if you have created a
2+
# blank database locally named `cargo_registry`, this would be
3+
# `postgres://postgres@localhost/cargo_registry`.
4+
export DATABASE_URL=
5+
6+
# Allowed origins - any origins for which you want to allow browser
7+
# access to authenticated endpoints.
8+
export WEB_ALLOWED_ORIGINS=http://localhost:8888,http://localhost:4200
9+
10+
# If you're running an instance of the application on a domain different than
11+
# crates.io, uncomment this line and set the variable to your domain name.
12+
# export DOMAIN_NAME=staging.crates.io
13+
14+
# Key to sign and encrypt cookies with. Must be at least 32 bytes. Change this
15+
# to a long, random string for production.
16+
export SESSION_KEY=badkeyabcdefghijklmnopqrstuvwxyzabcdef
17+
18+
# If you will be running the tests, set this to another database that you
19+
# have created. For example, if your test database is named
20+
# `cargo_registry_test`, this would look something like
21+
# `postgres://postgres@localhost/cargo_registry_test`
22+
# If you don't plan on running the tests, you can leave this blank.
23+
export TEST_DATABASE_URL=
24+
25+
# Credentials for AWS.
26+
# export AWS_ACCESS_KEY=
27+
# export AWS_SECRET_KEY=
28+
29+
# Configuration for uploading packages to S3. You can leave these commented
30+
# out if you're not publishing to s3 from your crates.io instance.
31+
# Uses AWS credentials.
32+
# export S3_BUCKET=
33+
# not needed if the S3 bucket is in US standard
34+
# export S3_REGION=
35+
36+
# Configuration for uploading index metadata to S3. You can leave these commented
37+
# out if you're not publishing index metadata to s3 from your crates.io instance.
38+
# Uses AWS credentials.
39+
# export S3_INDEX_BUCKET=
40+
# not needed if the S3 bucket is in US standard
41+
# export S3_INDEX_REGION=
42+
43+
# Configuration for invalidating cached files on CloudFront. You can leave these
44+
# commented out if you're not using CloudFront caching for the index files.
45+
# Uses AWS credentials.
46+
# export CLOUDFRONT_DISTRIBUTION=
47+
48+
# Configuration for the CDN log queue. You can leave these commented out if
49+
# you're not using the CDN log queue.
50+
# export CDN_LOG_QUEUE_ACCESS_KEY=
51+
# export CDN_LOG_QUEUE_SECRET_KEY=
52+
# export CDN_LOG_QUEUE_URL=
53+
# export CDN_LOG_QUEUE_REGION=
54+
55+
# Configuration for the version downloads data archive.
56+
# You can leave these commented out if you're not using the archival process.
57+
# export DOWNLOADS_ARCHIVE_ACCESS_KEY=
58+
# export DOWNLOADS_ARCHIVE_SECRET_KEY=
59+
# export DOWNLOADS_ARCHIVE_REGION=
60+
# export DOWNLOADS_ARCHIVE_BUCKET=
61+
62+
# Upstream location of the registry index. Background jobs will push to
63+
# this URL. The default points to a local index for development.
64+
# Run `./script/init-local-index.sh` to initialize this repo.
65+
export GIT_REPO_URL=file://$PWD/tmp/index-bare
66+
67+
# Credentials for talking to GitHub. You can leave these blank if you're
68+
# not logging into your crates.io instance.
69+
# When registering a new application on GitHub for use with your local
70+
# crates.io instance, be sure to set the callback url for that application
71+
# to the address `http://localhost:4200/github-redirect.html`.
72+
export GH_CLIENT_ID=
73+
export GH_CLIENT_SECRET=
74+
75+
# Credentials for configuring Mailgun. You can leave these commented out
76+
# if you are not interested in actually sending emails. If left empty,
77+
# a mock email will be sent to a file in your local '/tmp/' directory.
78+
# If interested in setting up Mailgun to send emails, you will have
79+
# to create an account with Mailgun and modify these manually.
80+
# If running a crates mirror on heroku, you can instead add the Mailgun
81+
# app to your instance and shouldn't have to mess with these.
82+
# export MAILGUN_SMTP_LOGIN=
83+
# export MAILGUN_SMTP_PASSWORD=
84+
# export MAILGUN_SMTP_SERVER=
85+
86+
# Credentials for connecting to the Sentry error reporting service.
87+
# export SENTRY_DSN_API=
88+
export SENTRY_ENV_API=local
89+
90+
# Base URL for the service from which the OpenGraph images
91+
# for crates are loaded. Make sure the URL ends
92+
# with a `/`.
93+
export OG_IMAGE_BASE_URL="http://localhost:3000/og/"
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Bug report
2+
description: Create a report to help us improve
3+
labels: ['C-bug']
4+
body:
5+
- type: textarea
6+
attributes:
7+
label: Current Behavior
8+
description: A concise description of what you're experiencing.
9+
validations:
10+
required: true
11+
12+
- type: textarea
13+
attributes:
14+
label: Expected Behavior
15+
description: A concise description of what you expected to happen.
16+
validations:
17+
required: true
18+
19+
- type: textarea
20+
attributes:
21+
label: Steps To Reproduce
22+
description: Steps to reproduce the behavior.
23+
placeholder: |
24+
1. Go to '...'
25+
2. Click on '....'
26+
3. Scroll down to '....'
27+
4. See error
28+
validations:
29+
required: false
30+
31+
- type: textarea
32+
attributes:
33+
label: Environment
34+
description: |
35+
examples:
36+
- **Browser**: Safari 15.1
37+
- **OS**: macOS 11.6.1
38+
value: |
39+
- Browser:
40+
- OS:
41+
validations:
42+
required: false
43+
44+
- type: textarea
45+
attributes:
46+
label: Anything else?
47+
description: |
48+
Links? References? Anything that will give us more context about the issue you are encountering!
49+
50+
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
51+
validations:
52+
required: false
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Feature request
4+
about: Suggest an idea for this project
5+
url: https://github.com/rust-lang/crates.io/discussions/new
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
{
2+
extends: [
3+
"config:best-practices",
4+
":pinAllExceptPeerDependencies",
5+
":maintainLockFilesWeekly",
6+
":prConcurrentLimitNone",
7+
":prHourlyLimitNone",
8+
":semanticCommitsDisabled",
9+
":automergeLinters",
10+
":automergeTesters",
11+
"customManagers:dockerfileVersions",
12+
"customManagers:githubActionsVersions",
13+
"github>Turbo87/renovate-config//rust/updateToolchain",
14+
],
15+
packageRules: [
16+
{
17+
matchCategories: ["rust"],
18+
labels: ["A-backend ⚙️"],
19+
},
20+
{
21+
matchCategories: ["js"],
22+
labels: ["A-frontend 🐹"],
23+
},
24+
{
25+
matchDepNames: ["ember-cli", "ember-data", "ember-source"],
26+
separateMinorPatch: true,
27+
},
28+
{
29+
matchDepNames: [
30+
"@percy/cli",
31+
"tj-actions/changed-files",
32+
"webpack",
33+
],
34+
extends: ["schedule:weekly"],
35+
},
36+
{
37+
// Avoid "Artifact update problem" for pnpm updates when the renovatebot
38+
// setup does not support the new version yet.
39+
matchDepNames: ["pnpm"],
40+
minimumReleaseAge: "24 hours",
41+
},
42+
{
43+
matchCategories: ["js"],
44+
matchUpdateTypes: ["lockFileMaintenance"],
45+
additionalBranchPrefix: "js-",
46+
commitMessageSuffix: "(JS)",
47+
},
48+
{
49+
matchCategories: ["rust"],
50+
matchUpdateTypes: ["lockFileMaintenance"],
51+
additionalBranchPrefix: "rust-",
52+
commitMessageSuffix: "(Rust)",
53+
},
54+
{
55+
matchManagers: ["custom.regex"],
56+
matchDepNames: ["rust"],
57+
commitMessageTopic: "Rust",
58+
labels: ["A-backend ⚙️"],
59+
},
60+
{
61+
matchDepNames: ["/^diesel$/", "/^diesel_/"],
62+
groupName: "diesel packages",
63+
},
64+
{
65+
matchDepNames: ["aws-ip-ranges"],
66+
automerge: true,
67+
},
68+
{
69+
matchUpdateTypes: ["digest"],
70+
enabled: false,
71+
},
72+
{
73+
// This is causing various issues, so we disable it for now.
74+
matchDatasources: ["docker"],
75+
matchUpdateTypes: ["pinDigest"],
76+
enabled: false
77+
},
78+
],
79+
}

0 commit comments

Comments
 (0)