Skip to content

Commit c593220

Browse files
committed
Expose description, homepage, documentation and repository fields on the version API
1 parent 37ffc93 commit c593220

File tree

22 files changed

+130
-6
lines changed

22 files changed

+130
-6
lines changed

src/tests/krate/publish/snapshots/crates_io__tests__krate__publish__edition__edition_is_saved-2.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@ snapshot_kind: text
2323
"crate": "foo",
2424
"crate_size": 169,
2525
"created_at": "[datetime]",
26+
"description": "description",
2627
"dl_path": "/api/v1/crates/foo/1.0.0/download",
28+
"documentation": null,
2729
"downloads": 0,
2830
"edition": "2021",
2931
"features": {},
3032
"has_lib": false,
33+
"homepage": null,
3134
"id": "[id]",
3235
"lib_links": null,
3336
"license": "MIT",
@@ -45,6 +48,7 @@ snapshot_kind: text
4548
"url": "https://github.com/foo"
4649
},
4750
"readme_path": "/api/v1/crates/foo/1.0.0/readme",
51+
"repository": null,
4852
"rust_version": "1.0",
4953
"updated_at": "[datetime]",
5054
"yank_message": null,

src/tests/krate/publish/snapshots/crates_io__tests__krate__publish__links__crate_with_links_field-2.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@ snapshot_kind: text
2323
"crate": "foo",
2424
"crate_size": 162,
2525
"created_at": "[datetime]",
26+
"description": "foo?!",
2627
"dl_path": "/api/v1/crates/foo/1.0.0/download",
28+
"documentation": null,
2729
"downloads": 0,
2830
"edition": null,
2931
"features": {},
3032
"has_lib": false,
33+
"homepage": null,
3134
"id": "[id]",
3235
"lib_links": "git2",
3336
"license": "MIT",
@@ -45,6 +48,7 @@ snapshot_kind: text
4548
"url": "https://github.com/foo"
4649
},
4750
"readme_path": "/api/v1/crates/foo/1.0.0/readme",
51+
"repository": null,
4852
"rust_version": null,
4953
"updated_at": "[datetime]",
5054
"yank_message": null,

src/tests/krate/publish/snapshots/crates_io__tests__krate__publish__manifest__boolean_readme-2.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@ snapshot_kind: text
2323
"crate": "foo",
2424
"crate_size": 170,
2525
"created_at": "[datetime]",
26+
"description": "description",
2627
"dl_path": "/api/v1/crates/foo/1.0.0/download",
28+
"documentation": null,
2729
"downloads": 0,
2830
"edition": null,
2931
"features": {},
3032
"has_lib": false,
33+
"homepage": null,
3134
"id": "[id]",
3235
"lib_links": null,
3336
"license": "MIT",
@@ -45,6 +48,7 @@ snapshot_kind: text
4548
"url": "https://github.com/foo"
4649
},
4750
"readme_path": "/api/v1/crates/foo/1.0.0/readme",
51+
"repository": null,
4852
"rust_version": "1.69",
4953
"updated_at": "[datetime]",
5054
"yank_message": null,

src/tests/krate/publish/snapshots/crates_io__tests__krate__publish__manifest__lib_and_bin_crate-2.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,14 @@ snapshot_kind: text
2626
"crate": "foo",
2727
"crate_size": 241,
2828
"created_at": "[datetime]",
29+
"description": "description",
2930
"dl_path": "/api/v1/crates/foo/1.0.0/download",
31+
"documentation": null,
3032
"downloads": 0,
3133
"edition": null,
3234
"features": {},
3335
"has_lib": true,
36+
"homepage": null,
3437
"id": "[id]",
3538
"lib_links": null,
3639
"license": "MIT",
@@ -48,6 +51,7 @@ snapshot_kind: text
4851
"url": "https://github.com/foo"
4952
},
5053
"readme_path": "/api/v1/crates/foo/1.0.0/readme",
54+
"repository": null,
5155
"rust_version": null,
5256
"updated_at": "[datetime]",
5357
"yank_message": null,

src/tests/krate/snapshots/crates_io__tests__krate__yanking__patch_version_yank_unyank-2.snap

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ snapshot_kind: text
5959
"rust_version": null,
6060
"has_lib": false,
6161
"bin_names": [],
62-
"edition": null
62+
"edition": null,
63+
"description": "description",
64+
"homepage": null,
65+
"documentation": null,
66+
"repository": null
6367
}
6468
}

src/tests/krate/snapshots/crates_io__tests__krate__yanking__patch_version_yank_unyank-3.snap

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ snapshot_kind: text
7070
"rust_version": null,
7171
"has_lib": false,
7272
"bin_names": [],
73-
"edition": null
73+
"edition": null,
74+
"description": "description",
75+
"homepage": null,
76+
"documentation": null,
77+
"repository": null
7478
}
7579
}

src/tests/krate/snapshots/crates_io__tests__krate__yanking__patch_version_yank_unyank-4.snap

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ snapshot_kind: text
7070
"rust_version": null,
7171
"has_lib": false,
7272
"bin_names": [],
73-
"edition": null
73+
"edition": null,
74+
"description": "description",
75+
"homepage": null,
76+
"documentation": null,
77+
"repository": null
7478
}
7579
}

src/tests/krate/snapshots/crates_io__tests__krate__yanking__patch_version_yank_unyank-5.snap

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ snapshot_kind: text
8181
"rust_version": null,
8282
"has_lib": false,
8383
"bin_names": [],
84-
"edition": null
84+
"edition": null,
85+
"description": "description",
86+
"homepage": null,
87+
"documentation": null,
88+
"repository": null
8589
}
8690
}

src/tests/krate/snapshots/crates_io__tests__krate__yanking__patch_version_yank_unyank-6.snap

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ snapshot_kind: text
8181
"rust_version": null,
8282
"has_lib": false,
8383
"bin_names": [],
84-
"edition": null
84+
"edition": null,
85+
"description": "description",
86+
"homepage": null,
87+
"documentation": null,
88+
"repository": null
8589
}
8690
}

src/tests/krate/snapshots/crates_io__tests__krate__yanking__patch_version_yank_unyank.snap

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ snapshot_kind: text
5959
"rust_version": null,
6060
"has_lib": false,
6161
"bin_names": [],
62-
"edition": null
62+
"edition": null,
63+
"description": "description",
64+
"homepage": null,
65+
"documentation": null,
66+
"repository": null
6367
}
6468
}

0 commit comments

Comments
 (0)