Allow providing a directory of static files

Đang mở
#480 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
rust
Lĩnh vực
backend

Hướng nghiên cứu

Start by locating the static_files! macro and reading how it currently ingests a single file; the issue does not name a file or test. Then identify existing tests or examples for static files and use them to check directory support. Done means files in a provided directory are ingested as static files, with the existing single-file behavior preserved.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

Currently, our static_files! macro allows only to provide a single file at a time, which doesn't scale well. We should expand it with the possibility to provide a directory, from which all files should be ingested as static ones.

Ngôn ngữ chính
Rust
Star
1.1k
Fork
57
Merge trung bình
17 giờ 39 phút
Pull request đã merge (30 ngày)
12

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của cot-rs/cot

Tất cả issue của cot-rs/cot

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.