samyakbayar commited on
Commit
4b556ed
·
verified ·
1 Parent(s): bf8fba0

Upload rust-crate-ecosystem dataset files with full metadata

Browse files
Files changed (8) hide show
  1. KAGGLE.md +144 -0
  2. README.md +153 -0
  3. about.md +18 -0
  4. data_dictionary.csv +45 -0
  5. dataset-metadata.json +255 -0
  6. kernel-metadata.json +14 -0
  7. notebook.ipynb +199 -0
  8. rust_crates.csv +0 -0
KAGGLE.md ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Rust Crate Ecosystem
2
+
3
+ **Subtitle:** 20,000 crates with downloads, versions, metadata and maintenance stats
4
+
5
+ **Tags:** `tabular`, `software`, `rust`
6
+
7
+ **Dataset File:** `rust_crates.csv` (22,404 rows, 44 columns, 7.0 MB)
8
+
9
+ **Provenance & Source:** crates.io API & Database Dumps (crates.io)
10
+
11
+ **Expected Update Frequency:** `monthly`
12
+
13
+ ---
14
+
15
+ ## 📖 Description
16
+
17
+ ### 30,000 Rust crates
18
+
19
+ crates.io is the Rust package registry. This dataset contains the **20,000 most-downloaded crates**
20
+ with **44 parameters** each.
21
+
22
+ - **Identity** — name, creation and update dates, all-time and recent downloads, version count,
23
+ newest/max stable/default versions and yanked flag.
24
+ - **Metadata** — description, homepage, documentation, repository, keywords and categories.
25
+ - **Derived** — description length, keyword/category counts, link and description flags, pre-release
26
+ and 0.x flags, name features, age, downloads per day, versions per year and domain flags
27
+ (async, CLI, WASM, embedded, proc-macro, serialization).
28
+
29
+ **10,110 crates have more than a million downloads** and **19,452** link to a source
30
+ repository — a snapshot of the Rust open-source supply chain.
31
+
32
+ ## 🧾 Columns (44)
33
+
34
+ `name`, `created_at`, `updated_at`, `downloads`, `recent_downloads`, `recent_share_pct`, `num_versions`, `max_version`, `newest_version`, `max_stable_version`, `default_version`, `yanked`, `description`, `description_length`, `homepage`, `documentation`, `repository`, `keywords`, `categories`, `keyword_count`, `category_count`, `has_homepage`, `has_documentation`, `has_repository`, `has_description`, `is_prerelease`, `is_major_zero`, `name_length`, `name_has_underscore`, `age_days`, `days_since_update`, `downloads_per_day`, `recent_downloads_per_day`, `versions_per_year`, `is_popular`, `download_band`, `is_async`, `is_cli`, `is_wasm`, `is_embedded`, `is_proc_macro`, `is_serialization`, `created_year`, `updated_year`
35
+
36
+ ## 💡 Ideas for using this data
37
+
38
+ 1. **Adoption curves** — downloads vs age, and which crates are still growing.
39
+ 2. **Maintenance** — days since update vs popularity; find abandoned dependencies.
40
+ 3. **Naming conventions** — underscores vs hyphens, length and prefix patterns.
41
+ 4. **Ecosystem layers** — async vs CLI vs embedded vs WASM crates by download band.
42
+ 5. **Documentation quality** — repository/documentation/homepage coverage by category.
43
+ 6. **Version churn** — versions per year and 0.x maturity.
44
+ 7. **Category network** — co-occurrence of categories and keywords.
45
+ 8. **Dependency risk** — popular crates with stale updates or yanked versions.
46
+ 9. **Supply chain** — build a crate metadata table for SBOM research.
47
+
48
+ ## 📁 Files
49
+
50
+ | File | What it is |
51
+ |---|---|
52
+ | `rust_crates.csv` | 20,000 crates x 44 parameters. |
53
+ | `data_dictionary.csv` | Column / type / description for every field. |
54
+ | `notebook.ipynb` | Starter notebook that loads the CSV and analyses it. |
55
+ | `dataset-metadata.json` | Kaggle API metadata. |
56
+ | `about.md` | Plain-text About block. |
57
+
58
+ ## 🏷️ Tags
59
+
60
+ `rust`, `crates`, `packages`, `software`, `open-source`, `supply-chain`, `developer-tools`
61
+
62
+ ## 🔗 Provenance
63
+
64
+ - **Source:** **crates.io API**, `https://crates.io/api/v1/crates?sort=downloads`,
65
+ 100 crates per page.
66
+ - **Scope:** the 30,000 most-downloaded crates at snapshot time.
67
+ - **Processing:** list records flattened; keywords and categories joined; age, download-rate, naming
68
+ and domain flags derived.
69
+ - **Snapshot date:** 22 November 2026.
70
+
71
+ ## 🔄 Update frequency
72
+
73
+ **Continuous.** New crates and versions are published daily.
74
+
75
+ ## ⚠️ Caveats
76
+
77
+ - Downloads are cumulative and not de-duplicated by user or CI.
78
+ - The crates.io API does not expose licence or dependency data in the list endpoint.
79
+ - Domain flags are keyword heuristics on the description and keywords.
80
+ - A yanked crate can still have many historical downloads.
81
+ - Version strings are not strictly semver-normalised.
82
+ - Recent downloads cover a 90-day window, so the rate is approximate.
83
+ - This is a popularity-ranked sample, not a random sample of all crates.
84
+
85
+ ## 📜 Licence
86
+
87
+ crate metadata is provided by crates.io under CC BY 4.0; each crate keeps its own licence.
88
+
89
+ ### 📋 Column Definitions & File Header
90
+
91
+ | # | Column Name | Data Type | Description |
92
+ |---|---|---|---|
93
+ | 1 | `name` | `string` | Crate name. |
94
+ | 2 | `created_at` | `date` | First publication date. |
95
+ | 3 | `updated_at` | `date` | Last update date. |
96
+ | 4 | `downloads` | `number` | All-time downloads. |
97
+ | 5 | `recent_downloads` | `number` | Downloads in the last 90 days. |
98
+ | 6 | `recent_share_pct` | `number` | recent_downloads as a percentage of all-time downloads. |
99
+ | 7 | `num_versions` | `number` | Number of published versions. |
100
+ | 8 | `max_version` | `string` | Highest published version. |
101
+ | 9 | `newest_version` | `string` | Newest published version. |
102
+ | 10 | `max_stable_version` | `string` | Highest non-prerelease version. |
103
+ | 11 | `default_version` | `string` | Default version shown by crates.io. |
104
+ | 12 | `yanked` | `boolean` | true when the crate is yanked. |
105
+ | 13 | `description` | `string` | Crate description. |
106
+ | 14 | `description_length` | `number` | Characters in the description. |
107
+ | 15 | `homepage` | `string` | Project homepage. |
108
+ | 16 | `documentation` | `string` | Documentation URL. |
109
+ | 17 | `repository` | `string` | Source repository URL. |
110
+ | 18 | `keywords` | `number` | Keywords (semicolon-joined). |
111
+ | 19 | `categories` | `number` | Categories (semicolon-joined). |
112
+ | 20 | `keyword_count` | `number` | Number of keywords. |
113
+ | 21 | `category_count` | `number` | Number of categories. |
114
+ | 22 | `has_homepage` | `boolean` | true when a homepage is listed. |
115
+ | 23 | `has_documentation` | `boolean` | true when documentation is listed. |
116
+ | 24 | `has_repository` | `boolean` | true when a repository is listed. |
117
+ | 25 | `has_description` | `boolean` | true when a description exists. |
118
+ | 26 | `is_prerelease` | `boolean` | true when the newest version is a pre-release. |
119
+ | 27 | `is_major_zero` | `boolean` | true when the newest version is 0.x. |
120
+ | 28 | `name_length` | `number` | Characters in the crate name. |
121
+ | 29 | `name_has_underscore` | `boolean` | true when the name contains an underscore. |
122
+ | 30 | `age_days` | `number` | Days since first publication. |
123
+ | 31 | `days_since_update` | `number` | Days since the last update. |
124
+ | 32 | `downloads_per_day` | `number` | All-time downloads divided by age in days. |
125
+ | 33 | `recent_downloads_per_day` | `number` | Recent downloads divided by 90. |
126
+ | 34 | `versions_per_year` | `number` | Versions published per year of age. |
127
+ | 35 | `is_popular` | `boolean` | true when all-time downloads exceed one million. |
128
+ | 36 | `download_band` | `string` | All-time download band. |
129
+ | 37 | `is_async` | `boolean` | true when the description or keywords mention async/tokio. |
130
+ | 38 | `is_cli` | `boolean` | true when the description or keywords mention CLI/command line. |
131
+ | 39 | `is_wasm` | `boolean` | true when the description or keywords mention wasm/webassembly. |
132
+ | 40 | `is_embedded` | `boolean` | true when the description or keywords mention embedded/no_std. |
133
+ | 41 | `is_proc_macro` | `boolean` | true when the description or keywords mention proc-macro. |
134
+ | 42 | `is_serialization` | `boolean` | true when the description or keywords mention serde/serialization. |
135
+ | 43 | `created_year` | `number` | Year of first publication. |
136
+ | 44 | `updated_year` | `number` | Year of last update. |
137
+
138
+
139
+
140
+ ---
141
+
142
+ ## 🌟 Support & Community
143
+ If you find this dataset valuable for your research, machine learning projects, or data explorations, **please give it an upvote (👍) on Kaggle!**
144
+ Feedback, questions, and community notebook submissions are warmly welcomed in the Discussions tab.
README.md ADDED
@@ -0,0 +1,153 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ task_categories:
4
+ - tabular
5
+ tags:
6
+ - tabular
7
+ pretty_name: Rust Crate Ecosystem
8
+ ---
9
+
10
+ # Rust Crate Ecosystem
11
+
12
+ **Subtitle:** 20,000 crates with downloads, versions, metadata and maintenance stats
13
+
14
+ **Tags:** `tabular`, `software`, `rust`
15
+
16
+ **Dataset File:** `rust_crates.csv` (22,404 rows, 44 columns, 7.0 MB)
17
+
18
+ **Provenance & Source:** crates.io API & Database Dumps (crates.io)
19
+
20
+ **Expected Update Frequency:** `monthly`
21
+
22
+ ---
23
+
24
+ ## 📖 Description
25
+
26
+ ### 30,000 Rust crates
27
+
28
+ crates.io is the Rust package registry. This dataset contains the **20,000 most-downloaded crates**
29
+ with **44 parameters** each.
30
+
31
+ - **Identity** — name, creation and update dates, all-time and recent downloads, version count,
32
+ newest/max stable/default versions and yanked flag.
33
+ - **Metadata** — description, homepage, documentation, repository, keywords and categories.
34
+ - **Derived** — description length, keyword/category counts, link and description flags, pre-release
35
+ and 0.x flags, name features, age, downloads per day, versions per year and domain flags
36
+ (async, CLI, WASM, embedded, proc-macro, serialization).
37
+
38
+ **10,110 crates have more than a million downloads** and **19,452** link to a source
39
+ repository — a snapshot of the Rust open-source supply chain.
40
+
41
+ ## 🧾 Columns (44)
42
+
43
+ `name`, `created_at`, `updated_at`, `downloads`, `recent_downloads`, `recent_share_pct`, `num_versions`, `max_version`, `newest_version`, `max_stable_version`, `default_version`, `yanked`, `description`, `description_length`, `homepage`, `documentation`, `repository`, `keywords`, `categories`, `keyword_count`, `category_count`, `has_homepage`, `has_documentation`, `has_repository`, `has_description`, `is_prerelease`, `is_major_zero`, `name_length`, `name_has_underscore`, `age_days`, `days_since_update`, `downloads_per_day`, `recent_downloads_per_day`, `versions_per_year`, `is_popular`, `download_band`, `is_async`, `is_cli`, `is_wasm`, `is_embedded`, `is_proc_macro`, `is_serialization`, `created_year`, `updated_year`
44
+
45
+ ## 💡 Ideas for using this data
46
+
47
+ 1. **Adoption curves** — downloads vs age, and which crates are still growing.
48
+ 2. **Maintenance** — days since update vs popularity; find abandoned dependencies.
49
+ 3. **Naming conventions** — underscores vs hyphens, length and prefix patterns.
50
+ 4. **Ecosystem layers** — async vs CLI vs embedded vs WASM crates by download band.
51
+ 5. **Documentation quality** — repository/documentation/homepage coverage by category.
52
+ 6. **Version churn** — versions per year and 0.x maturity.
53
+ 7. **Category network** — co-occurrence of categories and keywords.
54
+ 8. **Dependency risk** — popular crates with stale updates or yanked versions.
55
+ 9. **Supply chain** — build a crate metadata table for SBOM research.
56
+
57
+ ## 📁 Files
58
+
59
+ | File | What it is |
60
+ |---|---|
61
+ | `rust_crates.csv` | 20,000 crates x 44 parameters. |
62
+ | `data_dictionary.csv` | Column / type / description for every field. |
63
+ | `notebook.ipynb` | Starter notebook that loads the CSV and analyses it. |
64
+ | `dataset-metadata.json` | Kaggle API metadata. |
65
+ | `about.md` | Plain-text About block. |
66
+
67
+ ## 🏷️ Tags
68
+
69
+ `rust`, `crates`, `packages`, `software`, `open-source`, `supply-chain`, `developer-tools`
70
+
71
+ ## 🔗 Provenance
72
+
73
+ - **Source:** **crates.io API**, `https://crates.io/api/v1/crates?sort=downloads`,
74
+ 100 crates per page.
75
+ - **Scope:** the 30,000 most-downloaded crates at snapshot time.
76
+ - **Processing:** list records flattened; keywords and categories joined; age, download-rate, naming
77
+ and domain flags derived.
78
+ - **Snapshot date:** 22 November 2026.
79
+
80
+ ## 🔄 Update frequency
81
+
82
+ **Continuous.** New crates and versions are published daily.
83
+
84
+ ## ⚠️ Caveats
85
+
86
+ - Downloads are cumulative and not de-duplicated by user or CI.
87
+ - The crates.io API does not expose licence or dependency data in the list endpoint.
88
+ - Domain flags are keyword heuristics on the description and keywords.
89
+ - A yanked crate can still have many historical downloads.
90
+ - Version strings are not strictly semver-normalised.
91
+ - Recent downloads cover a 90-day window, so the rate is approximate.
92
+ - This is a popularity-ranked sample, not a random sample of all crates.
93
+
94
+ ## 📜 Licence
95
+
96
+ crate metadata is provided by crates.io under CC BY 4.0; each crate keeps its own licence.
97
+
98
+ ### 📋 Column Definitions & File Header
99
+
100
+ | # | Column Name | Data Type | Description |
101
+ |---|---|---|---|
102
+ | 1 | `name` | `string` | Crate name. |
103
+ | 2 | `created_at` | `date` | First publication date. |
104
+ | 3 | `updated_at` | `date` | Last update date. |
105
+ | 4 | `downloads` | `number` | All-time downloads. |
106
+ | 5 | `recent_downloads` | `number` | Downloads in the last 90 days. |
107
+ | 6 | `recent_share_pct` | `number` | recent_downloads as a percentage of all-time downloads. |
108
+ | 7 | `num_versions` | `number` | Number of published versions. |
109
+ | 8 | `max_version` | `string` | Highest published version. |
110
+ | 9 | `newest_version` | `string` | Newest published version. |
111
+ | 10 | `max_stable_version` | `string` | Highest non-prerelease version. |
112
+ | 11 | `default_version` | `string` | Default version shown by crates.io. |
113
+ | 12 | `yanked` | `boolean` | true when the crate is yanked. |
114
+ | 13 | `description` | `string` | Crate description. |
115
+ | 14 | `description_length` | `number` | Characters in the description. |
116
+ | 15 | `homepage` | `string` | Project homepage. |
117
+ | 16 | `documentation` | `string` | Documentation URL. |
118
+ | 17 | `repository` | `string` | Source repository URL. |
119
+ | 18 | `keywords` | `number` | Keywords (semicolon-joined). |
120
+ | 19 | `categories` | `number` | Categories (semicolon-joined). |
121
+ | 20 | `keyword_count` | `number` | Number of keywords. |
122
+ | 21 | `category_count` | `number` | Number of categories. |
123
+ | 22 | `has_homepage` | `boolean` | true when a homepage is listed. |
124
+ | 23 | `has_documentation` | `boolean` | true when documentation is listed. |
125
+ | 24 | `has_repository` | `boolean` | true when a repository is listed. |
126
+ | 25 | `has_description` | `boolean` | true when a description exists. |
127
+ | 26 | `is_prerelease` | `boolean` | true when the newest version is a pre-release. |
128
+ | 27 | `is_major_zero` | `boolean` | true when the newest version is 0.x. |
129
+ | 28 | `name_length` | `number` | Characters in the crate name. |
130
+ | 29 | `name_has_underscore` | `boolean` | true when the name contains an underscore. |
131
+ | 30 | `age_days` | `number` | Days since first publication. |
132
+ | 31 | `days_since_update` | `number` | Days since the last update. |
133
+ | 32 | `downloads_per_day` | `number` | All-time downloads divided by age in days. |
134
+ | 33 | `recent_downloads_per_day` | `number` | Recent downloads divided by 90. |
135
+ | 34 | `versions_per_year` | `number` | Versions published per year of age. |
136
+ | 35 | `is_popular` | `boolean` | true when all-time downloads exceed one million. |
137
+ | 36 | `download_band` | `string` | All-time download band. |
138
+ | 37 | `is_async` | `boolean` | true when the description or keywords mention async/tokio. |
139
+ | 38 | `is_cli` | `boolean` | true when the description or keywords mention CLI/command line. |
140
+ | 39 | `is_wasm` | `boolean` | true when the description or keywords mention wasm/webassembly. |
141
+ | 40 | `is_embedded` | `boolean` | true when the description or keywords mention embedded/no_std. |
142
+ | 41 | `is_proc_macro` | `boolean` | true when the description or keywords mention proc-macro. |
143
+ | 42 | `is_serialization` | `boolean` | true when the description or keywords mention serde/serialization. |
144
+ | 43 | `created_year` | `number` | Year of first publication. |
145
+ | 44 | `updated_year` | `number` | Year of last update. |
146
+
147
+
148
+
149
+ ---
150
+
151
+ ## 🌟 Support & Community
152
+ If you find this dataset valuable for your research, machine learning projects, or data explorations, **please give it an upvote (👍) on Kaggle!**
153
+ Feedback, questions, and community notebook submissions are warmly welcomed in the Discussions tab.
about.md ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Rust Crate Ecosystem
2
+
3
+ ### 30,000 Rust crates
4
+
5
+ crates.io is the Rust package registry. This dataset contains the **20,000 most-downloaded crates**
6
+ with **44 parameters** each.
7
+
8
+ - **Identity** — name, creation and update dates, all-time and recent downloads, version count,
9
+ newest/max stable/default versions and yanked flag.
10
+ - **Metadata** — description, homepage, documentation, repository, keywords and categories.
11
+ - **Derived** — description length, keyword/category counts, link and description flags, pre-release
12
+ and 0.x flags, name features, age, downloads per day, versions per year and domain flags
13
+ (async, CLI, WASM, embedded, proc-macro, serialization).
14
+
15
+ **10,110 crates have more than a million downloads** and **19,452** link to a source
16
+ repository — a snapshot of the Rust open-source supply chain.
17
+
18
+ 44 columns; 20,000 crates x 44 parameters.
data_dictionary.csv ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ column,data_type,description
2
+ name,string,Crate name.
3
+ created_at,date,First publication date.
4
+ updated_at,date,Last update date.
5
+ downloads,number,All-time downloads.
6
+ recent_downloads,number,Downloads in the last 90 days.
7
+ recent_share_pct,number,recent_downloads as a percentage of all-time downloads.
8
+ num_versions,number,Number of published versions.
9
+ max_version,string,Highest published version.
10
+ newest_version,string,Newest published version.
11
+ max_stable_version,string,Highest non-prerelease version.
12
+ default_version,string,Default version shown by crates.io.
13
+ yanked,boolean,true when the crate is yanked.
14
+ description,string,Crate description.
15
+ description_length,number,Characters in the description.
16
+ homepage,string,Project homepage.
17
+ documentation,string,Documentation URL.
18
+ repository,string,Source repository URL.
19
+ keywords,number,Keywords (semicolon-joined).
20
+ categories,number,Categories (semicolon-joined).
21
+ keyword_count,number,Number of keywords.
22
+ category_count,number,Number of categories.
23
+ has_homepage,boolean,true when a homepage is listed.
24
+ has_documentation,boolean,true when documentation is listed.
25
+ has_repository,boolean,true when a repository is listed.
26
+ has_description,boolean,true when a description exists.
27
+ is_prerelease,boolean,true when the newest version is a pre-release.
28
+ is_major_zero,boolean,true when the newest version is 0.x.
29
+ name_length,number,Characters in the crate name.
30
+ name_has_underscore,boolean,true when the name contains an underscore.
31
+ age_days,number,Days since first publication.
32
+ days_since_update,number,Days since the last update.
33
+ downloads_per_day,number,All-time downloads divided by age in days.
34
+ recent_downloads_per_day,number,Recent downloads divided by 90.
35
+ versions_per_year,number,Versions published per year of age.
36
+ is_popular,boolean,true when all-time downloads exceed one million.
37
+ download_band,string,All-time download band.
38
+ is_async,boolean,true when the description or keywords mention async/tokio.
39
+ is_cli,boolean,true when the description or keywords mention CLI/command line.
40
+ is_wasm,boolean,true when the description or keywords mention wasm/webassembly.
41
+ is_embedded,boolean,true when the description or keywords mention embedded/no_std.
42
+ is_proc_macro,boolean,true when the description or keywords mention proc-macro.
43
+ is_serialization,boolean,true when the description or keywords mention serde/serialization.
44
+ created_year,number,Year of first publication.
45
+ updated_year,number,Year of last update.
dataset-metadata.json ADDED
@@ -0,0 +1,255 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "title": "Rust Crate Ecosystem",
3
+ "id": "edudev-commons-org/rust-crate-ecosystem",
4
+ "subtitle": "20,000 crates with downloads, versions, metadata and maintenance stats",
5
+ "description": "# Rust Crate Ecosystem\n\n**Subtitle:** 20,000 crates with downloads, versions, metadata and maintenance stats\n\n**Tags:** `tabular`, `software`, `rust`\n\n**Dataset File:** `rust_crates.csv` (22,404 rows, 44 columns, 7.0 MB)\n\n**Provenance & Source:** crates.io API & Database Dumps (crates.io)\n\n**Expected Update Frequency:** `monthly`\n\n---\n\n## \ud83d\udcd6 Description\n\n### 30,000 Rust crates\n\ncrates.io is the Rust package registry. This dataset contains the **20,000 most-downloaded crates**\nwith **44 parameters** each.\n\n- **Identity** \u2014 name, creation and update dates, all-time and recent downloads, version count,\n newest/max stable/default versions and yanked flag.\n- **Metadata** \u2014 description, homepage, documentation, repository, keywords and categories.\n- **Derived** \u2014 description length, keyword/category counts, link and description flags, pre-release\n and 0.x flags, name features, age, downloads per day, versions per year and domain flags\n (async, CLI, WASM, embedded, proc-macro, serialization).\n\n**10,110 crates have more than a million downloads** and **19,452** link to a source\nrepository \u2014 a snapshot of the Rust open-source supply chain.\n\n## \ud83e\uddfe Columns (44)\n\n`name`, `created_at`, `updated_at`, `downloads`, `recent_downloads`, `recent_share_pct`, `num_versions`, `max_version`, `newest_version`, `max_stable_version`, `default_version`, `yanked`, `description`, `description_length`, `homepage`, `documentation`, `repository`, `keywords`, `categories`, `keyword_count`, `category_count`, `has_homepage`, `has_documentation`, `has_repository`, `has_description`, `is_prerelease`, `is_major_zero`, `name_length`, `name_has_underscore`, `age_days`, `days_since_update`, `downloads_per_day`, `recent_downloads_per_day`, `versions_per_year`, `is_popular`, `download_band`, `is_async`, `is_cli`, `is_wasm`, `is_embedded`, `is_proc_macro`, `is_serialization`, `created_year`, `updated_year`\n\n## \ud83d\udca1 Ideas for using this data\n\n1. **Adoption curves** \u2014 downloads vs age, and which crates are still growing.\n2. **Maintenance** \u2014 days since update vs popularity; find abandoned dependencies.\n3. **Naming conventions** \u2014 underscores vs hyphens, length and prefix patterns.\n4. **Ecosystem layers** \u2014 async vs CLI vs embedded vs WASM crates by download band.\n5. **Documentation quality** \u2014 repository/documentation/homepage coverage by category.\n6. **Version churn** \u2014 versions per year and 0.x maturity.\n7. **Category network** \u2014 co-occurrence of categories and keywords.\n8. **Dependency risk** \u2014 popular crates with stale updates or yanked versions.\n9. **Supply chain** \u2014 build a crate metadata table for SBOM research.\n\n## \ud83d\udcc1 Files\n\n| File | What it is |\n|---|---|\n| `rust_crates.csv` | 20,000 crates x 44 parameters. |\n| `data_dictionary.csv` | Column / type / description for every field. |\n| `notebook.ipynb` | Starter notebook that loads the CSV and analyses it. |\n| `dataset-metadata.json` | Kaggle API metadata. |\n| `about.md` | Plain-text About block. |\n\n## \ud83c\udff7\ufe0f Tags\n\n`rust`, `crates`, `packages`, `software`, `open-source`, `supply-chain`, `developer-tools`\n\n## \ud83d\udd17 Provenance\n\n- **Source:** **crates.io API**, `https://crates.io/api/v1/crates?sort=downloads`,\n 100 crates per page.\n- **Scope:** the 30,000 most-downloaded crates at snapshot time.\n- **Processing:** list records flattened; keywords and categories joined; age, download-rate, naming\n and domain flags derived.\n- **Snapshot date:** 22 November 2026.\n\n## \ud83d\udd04 Update frequency\n\n**Continuous.** New crates and versions are published daily.\n\n## \u26a0\ufe0f Caveats\n\n- Downloads are cumulative and not de-duplicated by user or CI.\n- The crates.io API does not expose licence or dependency data in the list endpoint.\n- Domain flags are keyword heuristics on the description and keywords.\n- A yanked crate can still have many historical downloads.\n- Version strings are not strictly semver-normalised.\n- Recent downloads cover a 90-day window, so the rate is approximate.\n- This is a popularity-ranked sample, not a random sample of all crates.\n\n## \ud83d\udcdc Licence\n\ncrate metadata is provided by crates.io under CC BY 4.0; each crate keeps its own licence.\n\n### \ud83d\udccb Column Definitions & File Header\n\n| # | Column Name | Data Type | Description |\n|---|---|---|---|\n| 1 | `name` | `string` | Crate name. |\n| 2 | `created_at` | `date` | First publication date. |\n| 3 | `updated_at` | `date` | Last update date. |\n| 4 | `downloads` | `number` | All-time downloads. |\n| 5 | `recent_downloads` | `number` | Downloads in the last 90 days. |\n| 6 | `recent_share_pct` | `number` | recent_downloads as a percentage of all-time downloads. |\n| 7 | `num_versions` | `number` | Number of published versions. |\n| 8 | `max_version` | `string` | Highest published version. |\n| 9 | `newest_version` | `string` | Newest published version. |\n| 10 | `max_stable_version` | `string` | Highest non-prerelease version. |\n| 11 | `default_version` | `string` | Default version shown by crates.io. |\n| 12 | `yanked` | `boolean` | true when the crate is yanked. |\n| 13 | `description` | `string` | Crate description. |\n| 14 | `description_length` | `number` | Characters in the description. |\n| 15 | `homepage` | `string` | Project homepage. |\n| 16 | `documentation` | `string` | Documentation URL. |\n| 17 | `repository` | `string` | Source repository URL. |\n| 18 | `keywords` | `number` | Keywords (semicolon-joined). |\n| 19 | `categories` | `number` | Categories (semicolon-joined). |\n| 20 | `keyword_count` | `number` | Number of keywords. |\n| 21 | `category_count` | `number` | Number of categories. |\n| 22 | `has_homepage` | `boolean` | true when a homepage is listed. |\n| 23 | `has_documentation` | `boolean` | true when documentation is listed. |\n| 24 | `has_repository` | `boolean` | true when a repository is listed. |\n| 25 | `has_description` | `boolean` | true when a description exists. |\n| 26 | `is_prerelease` | `boolean` | true when the newest version is a pre-release. |\n| 27 | `is_major_zero` | `boolean` | true when the newest version is 0.x. |\n| 28 | `name_length` | `number` | Characters in the crate name. |\n| 29 | `name_has_underscore` | `boolean` | true when the name contains an underscore. |\n| 30 | `age_days` | `number` | Days since first publication. |\n| 31 | `days_since_update` | `number` | Days since the last update. |\n| 32 | `downloads_per_day` | `number` | All-time downloads divided by age in days. |\n| 33 | `recent_downloads_per_day` | `number` | Recent downloads divided by 90. |\n| 34 | `versions_per_year` | `number` | Versions published per year of age. |\n| 35 | `is_popular` | `boolean` | true when all-time downloads exceed one million. |\n| 36 | `download_band` | `string` | All-time download band. |\n| 37 | `is_async` | `boolean` | true when the description or keywords mention async/tokio. |\n| 38 | `is_cli` | `boolean` | true when the description or keywords mention CLI/command line. |\n| 39 | `is_wasm` | `boolean` | true when the description or keywords mention wasm/webassembly. |\n| 40 | `is_embedded` | `boolean` | true when the description or keywords mention embedded/no_std. |\n| 41 | `is_proc_macro` | `boolean` | true when the description or keywords mention proc-macro. |\n| 42 | `is_serialization` | `boolean` | true when the description or keywords mention serde/serialization. |\n| 43 | `created_year` | `number` | Year of first publication. |\n| 44 | `updated_year` | `number` | Year of last update. |\n\n\n\n---\n\n## \ud83c\udf1f Support & Community\nIf you find this dataset valuable for your research, machine learning projects, or data explorations, **please give it an upvote (\ud83d\udc4d) on Kaggle!**\nFeedback, questions, and community notebook submissions are warmly welcomed in the Discussions tab.\n",
6
+ "isPrivate": false,
7
+ "licenses": [
8
+ {
9
+ "name": "CC-BY-4.0"
10
+ }
11
+ ],
12
+ "keywords": [
13
+ "tabular",
14
+ "software",
15
+ "rust"
16
+ ],
17
+ "resources": [
18
+ {
19
+ "path": "rust_crates.csv",
20
+ "description": "Primary dataset file containing 22,404 records across 44 parameters.",
21
+ "schema": {
22
+ "fields": [
23
+ {
24
+ "name": "name",
25
+ "type": "string",
26
+ "description": "Crate name."
27
+ },
28
+ {
29
+ "name": "created_at",
30
+ "type": "date",
31
+ "description": "First publication date."
32
+ },
33
+ {
34
+ "name": "updated_at",
35
+ "type": "date",
36
+ "description": "Last update date."
37
+ },
38
+ {
39
+ "name": "downloads",
40
+ "type": "number",
41
+ "description": "All-time downloads."
42
+ },
43
+ {
44
+ "name": "recent_downloads",
45
+ "type": "number",
46
+ "description": "Downloads in the last 90 days."
47
+ },
48
+ {
49
+ "name": "recent_share_pct",
50
+ "type": "number",
51
+ "description": "recent_downloads as a percentage of all-time downloads."
52
+ },
53
+ {
54
+ "name": "num_versions",
55
+ "type": "number",
56
+ "description": "Number of published versions."
57
+ },
58
+ {
59
+ "name": "max_version",
60
+ "type": "string",
61
+ "description": "Highest published version."
62
+ },
63
+ {
64
+ "name": "newest_version",
65
+ "type": "string",
66
+ "description": "Newest published version."
67
+ },
68
+ {
69
+ "name": "max_stable_version",
70
+ "type": "string",
71
+ "description": "Highest non-prerelease version."
72
+ },
73
+ {
74
+ "name": "default_version",
75
+ "type": "string",
76
+ "description": "Default version shown by crates.io."
77
+ },
78
+ {
79
+ "name": "yanked",
80
+ "type": "boolean",
81
+ "description": "true when the crate is yanked."
82
+ },
83
+ {
84
+ "name": "description",
85
+ "type": "string",
86
+ "description": "Crate description."
87
+ },
88
+ {
89
+ "name": "description_length",
90
+ "type": "number",
91
+ "description": "Characters in the description."
92
+ },
93
+ {
94
+ "name": "homepage",
95
+ "type": "string",
96
+ "description": "Project homepage."
97
+ },
98
+ {
99
+ "name": "documentation",
100
+ "type": "string",
101
+ "description": "Documentation URL."
102
+ },
103
+ {
104
+ "name": "repository",
105
+ "type": "string",
106
+ "description": "Source repository URL."
107
+ },
108
+ {
109
+ "name": "keywords",
110
+ "type": "number",
111
+ "description": "Keywords (semicolon-joined)."
112
+ },
113
+ {
114
+ "name": "categories",
115
+ "type": "number",
116
+ "description": "Categories (semicolon-joined)."
117
+ },
118
+ {
119
+ "name": "keyword_count",
120
+ "type": "number",
121
+ "description": "Number of keywords."
122
+ },
123
+ {
124
+ "name": "category_count",
125
+ "type": "number",
126
+ "description": "Number of categories."
127
+ },
128
+ {
129
+ "name": "has_homepage",
130
+ "type": "boolean",
131
+ "description": "true when a homepage is listed."
132
+ },
133
+ {
134
+ "name": "has_documentation",
135
+ "type": "boolean",
136
+ "description": "true when documentation is listed."
137
+ },
138
+ {
139
+ "name": "has_repository",
140
+ "type": "boolean",
141
+ "description": "true when a repository is listed."
142
+ },
143
+ {
144
+ "name": "has_description",
145
+ "type": "boolean",
146
+ "description": "true when a description exists."
147
+ },
148
+ {
149
+ "name": "is_prerelease",
150
+ "type": "boolean",
151
+ "description": "true when the newest version is a pre-release."
152
+ },
153
+ {
154
+ "name": "is_major_zero",
155
+ "type": "boolean",
156
+ "description": "true when the newest version is 0.x."
157
+ },
158
+ {
159
+ "name": "name_length",
160
+ "type": "number",
161
+ "description": "Characters in the crate name."
162
+ },
163
+ {
164
+ "name": "name_has_underscore",
165
+ "type": "boolean",
166
+ "description": "true when the name contains an underscore."
167
+ },
168
+ {
169
+ "name": "age_days",
170
+ "type": "number",
171
+ "description": "Days since first publication."
172
+ },
173
+ {
174
+ "name": "days_since_update",
175
+ "type": "number",
176
+ "description": "Days since the last update."
177
+ },
178
+ {
179
+ "name": "downloads_per_day",
180
+ "type": "number",
181
+ "description": "All-time downloads divided by age in days."
182
+ },
183
+ {
184
+ "name": "recent_downloads_per_day",
185
+ "type": "number",
186
+ "description": "Recent downloads divided by 90."
187
+ },
188
+ {
189
+ "name": "versions_per_year",
190
+ "type": "number",
191
+ "description": "Versions published per year of age."
192
+ },
193
+ {
194
+ "name": "is_popular",
195
+ "type": "boolean",
196
+ "description": "true when all-time downloads exceed one million."
197
+ },
198
+ {
199
+ "name": "download_band",
200
+ "type": "string",
201
+ "description": "All-time download band."
202
+ },
203
+ {
204
+ "name": "is_async",
205
+ "type": "boolean",
206
+ "description": "true when the description or keywords mention async/tokio."
207
+ },
208
+ {
209
+ "name": "is_cli",
210
+ "type": "boolean",
211
+ "description": "true when the description or keywords mention CLI/command line."
212
+ },
213
+ {
214
+ "name": "is_wasm",
215
+ "type": "boolean",
216
+ "description": "true when the description or keywords mention wasm/webassembly."
217
+ },
218
+ {
219
+ "name": "is_embedded",
220
+ "type": "boolean",
221
+ "description": "true when the description or keywords mention embedded/no_std."
222
+ },
223
+ {
224
+ "name": "is_proc_macro",
225
+ "type": "boolean",
226
+ "description": "true when the description or keywords mention proc-macro."
227
+ },
228
+ {
229
+ "name": "is_serialization",
230
+ "type": "boolean",
231
+ "description": "true when the description or keywords mention serde/serialization."
232
+ },
233
+ {
234
+ "name": "created_year",
235
+ "type": "number",
236
+ "description": "Year of first publication."
237
+ },
238
+ {
239
+ "name": "updated_year",
240
+ "type": "number",
241
+ "description": "Year of last update."
242
+ }
243
+ ]
244
+ }
245
+ },
246
+ {
247
+ "path": "data_dictionary.csv",
248
+ "description": "Field-level data dictionary detailing column names, data types, and semantic definitions."
249
+ },
250
+ {
251
+ "path": "notebook.ipynb",
252
+ "description": "Jupyter starter notebook providing exploratory data analysis and baseline visualizations."
253
+ }
254
+ ]
255
+ }
kernel-metadata.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "id": "samyakrajbayar/rust-crate-ecosystem-analysis",
3
+ "title": "Rust Crate Ecosystem Analysis",
4
+ "code_file": "notebook.ipynb",
5
+ "language": "python",
6
+ "kernel_type": "notebook",
7
+ "is_private": false,
8
+ "enable_gpu": false,
9
+ "enable_tpu": false,
10
+ "enable_internet": true,
11
+ "dataset_sources": [
12
+ "edudev-commons-org/rust-crate-ecosystem"
13
+ ]
14
+ }
notebook.ipynb ADDED
@@ -0,0 +1,199 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "markdown",
5
+ "id": "9e730432",
6
+ "metadata": {},
7
+ "source": [
8
+ "# Rust Crate Ecosystem\n",
9
+ "\n",
10
+ "Starter notebook for the Kaggle dataset in this folder. It loads `rust_crates.csv` with pandas and walks through quality checks and a first piece of analysis.\n",
11
+ "\n",
12
+ "**Files:** `rust_crates.csv`, `data_dictionary.csv`."
13
+ ]
14
+ },
15
+ {
16
+ "cell_type": "markdown",
17
+ "id": "0000f7f2",
18
+ "metadata": {},
19
+ "source": [
20
+ "## 1. Load the data"
21
+ ]
22
+ },
23
+ {
24
+ "cell_type": "code",
25
+ "id": "c1f75256",
26
+ "metadata": {},
27
+ "execution_count": null,
28
+ "outputs": [],
29
+ "source": [
30
+ "import pandas as pd\n",
31
+ "\n",
32
+ "df = pd.read_csv(\"rust_crates.csv\", low_memory=False)\n",
33
+ "print(df.shape)"
34
+ ]
35
+ },
36
+ {
37
+ "cell_type": "markdown",
38
+ "id": "325de123",
39
+ "metadata": {},
40
+ "source": [
41
+ "## 2. Shape, types and missing values"
42
+ ]
43
+ },
44
+ {
45
+ "cell_type": "code",
46
+ "id": "6eb42bc8",
47
+ "metadata": {},
48
+ "execution_count": null,
49
+ "outputs": [],
50
+ "source": [
51
+ "print(f\"{df.shape[0]:,} rows x {df.shape[1]} columns\")\n",
52
+ "\n",
53
+ "missing = df.isna().mean().mul(100).sort_values(ascending=False)\n",
54
+ "missing[missing > 0].round(1).to_frame(\"missing_%\").head(15)"
55
+ ]
56
+ },
57
+ {
58
+ "cell_type": "markdown",
59
+ "id": "f2d963fe",
60
+ "metadata": {},
61
+ "source": [
62
+ "## 3. Numeric summary"
63
+ ]
64
+ },
65
+ {
66
+ "cell_type": "code",
67
+ "id": "aa2f8fd4",
68
+ "metadata": {},
69
+ "execution_count": null,
70
+ "outputs": [],
71
+ "source": [
72
+ "df.describe(include='number').T.round(2).head(20)"
73
+ ]
74
+ },
75
+ {
76
+ "cell_type": "markdown",
77
+ "id": "d2560060",
78
+ "metadata": {},
79
+ "source": [
80
+ "## 4. Download distribution"
81
+ ]
82
+ },
83
+ {
84
+ "cell_type": "code",
85
+ "id": "8cbbcd20",
86
+ "metadata": {},
87
+ "execution_count": null,
88
+ "outputs": [],
89
+ "source": [
90
+ "df[\"downloads\"].dropna().clip(upper=10_000_000).hist(bins=50, figsize=(9, 4), log=True)"
91
+ ]
92
+ },
93
+ {
94
+ "cell_type": "markdown",
95
+ "id": "55975174",
96
+ "metadata": {},
97
+ "source": [
98
+ "## 5. Release cadence"
99
+ ]
100
+ },
101
+ {
102
+ "cell_type": "code",
103
+ "id": "975d6542",
104
+ "metadata": {},
105
+ "execution_count": null,
106
+ "outputs": [],
107
+ "source": [
108
+ "df[\"versions_per_year\"].dropna().clip(upper=50).hist(bins=40, figsize=(8, 4))"
109
+ ]
110
+ },
111
+ {
112
+ "cell_type": "markdown",
113
+ "id": "ceb1d934",
114
+ "metadata": {},
115
+ "source": [
116
+ "## 6. Maintenance"
117
+ ]
118
+ },
119
+ {
120
+ "cell_type": "code",
121
+ "id": "dcba5659",
122
+ "metadata": {},
123
+ "execution_count": null,
124
+ "outputs": [],
125
+ "source": [
126
+ "df[\"days_since_update\"].dropna().clip(upper=2000).hist(bins=50, figsize=(8, 4))"
127
+ ]
128
+ },
129
+ {
130
+ "cell_type": "markdown",
131
+ "id": "3858f33b",
132
+ "metadata": {},
133
+ "source": [
134
+ "## 7. Domain flags"
135
+ ]
136
+ },
137
+ {
138
+ "cell_type": "code",
139
+ "id": "1dade8d6",
140
+ "metadata": {},
141
+ "execution_count": null,
142
+ "outputs": [],
143
+ "source": [
144
+ "for c in [\"is_async\", \"is_cli\", \"is_wasm\", \"is_embedded\", \"is_proc_macro\", \"is_serialization\"]:\n",
145
+ " print(c, int((df[c].astype(str).str.lower() == \"true\").sum()))"
146
+ ]
147
+ },
148
+ {
149
+ "cell_type": "markdown",
150
+ "id": "ce9b2128",
151
+ "metadata": {},
152
+ "source": [
153
+ "## 8. Downloads per day vs age"
154
+ ]
155
+ },
156
+ {
157
+ "cell_type": "code",
158
+ "id": "a56c4005",
159
+ "metadata": {},
160
+ "execution_count": null,
161
+ "outputs": [],
162
+ "source": [
163
+ "sub = df.dropna(subset=[\"age_days\", \"downloads_per_day\"])\n",
164
+ "sub.plot.scatter(x=\"age_days\", y=\"downloads_per_day\", s=3, alpha=0.2, logy=True, figsize=(8, 5))"
165
+ ]
166
+ },
167
+ {
168
+ "cell_type": "markdown",
169
+ "id": "6e43770c",
170
+ "metadata": {},
171
+ "source": [
172
+ "## Next steps\n",
173
+ "\n",
174
+ "See `KAGGLE.md` for analysis ideas, caveats and provenance."
175
+ ]
176
+ }
177
+ ],
178
+ "metadata": {
179
+ "kernelspec": {
180
+ "display_name": "Python 3",
181
+ "language": "python",
182
+ "name": "python3"
183
+ },
184
+ "language_info": {
185
+ "name": "python",
186
+ "version": "3.11",
187
+ "mimetype": "text/x-python",
188
+ "file_extension": ".py",
189
+ "codemirror_mode": {
190
+ "name": "ipython",
191
+ "version": 3
192
+ },
193
+ "pygments_lexer": "ipython3",
194
+ "nbconvert_exporter": "python"
195
+ }
196
+ },
197
+ "nbformat": 4,
198
+ "nbformat_minor": 5
199
+ }
rust_crates.csv ADDED
The diff for this file is too large to render. See raw diff