Skip to content

Commit 1c5e106

Browse files
committed
Create the public repository.
0 parents  commit 1c5e106

17 files changed

Lines changed: 1224 additions & 0 deletions

File tree

.asimov/module.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# See: https://asimov-specs.github.io/module-manifest/
2+
---
3+
name: ftp
4+
label: FTP
5+
title: ASIMOV FTP Module
6+
summary: FTP/FTPS protocol support.
7+
links:
8+
- https://github.com/asimov-modules/asimov-ftp-module
9+
- https://crates.io/crates/asimov-ftp-module
10+
11+
provides:
12+
programs:
13+
- asimov-ftp-fetcher
14+
15+
handles:
16+
url_protocols:
17+
- ftp
18+
- ftps
19+
url_prefixes:
20+
url_patterns:
21+
file_extensions:
22+
content_types:

.cargo/config.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# See: https://doc.rust-lang.org/cargo/reference/config.html
2+
# See: https://docs.shipyard.rs/configuration/git-fetch-with-cli.html
3+
4+
[net]
5+
git-fetch-with-cli = true

.config/mise.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# See: https://mise.jdx.dev/environments/
2+
3+
[env]
4+
_.file = '.env'

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Cargo.lock linguist-generated -diff

.github/workflows/release.yaml

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
# See: https://docs.github.com/en/actions/writing-workflows
2+
---
3+
name: Release
4+
5+
# Trigger on any tag creation:
6+
on:
7+
push:
8+
tags:
9+
- "*"
10+
11+
jobs:
12+
build:
13+
strategy:
14+
fail-fast: true
15+
matrix:
16+
include:
17+
- os: ubuntu-latest
18+
artifact: linux-x86-gnu
19+
target: x86_64-unknown-linux-gnu
20+
use-zigbuild: true
21+
glibc-version: 2.28
22+
- os: ubuntu-latest
23+
artifact: linux-arm-gnu
24+
target: aarch64-unknown-linux-gnu
25+
use-zigbuild: true
26+
glibc-version: 2.28
27+
- os: ubuntu-latest
28+
artifact: linux-x86-musl
29+
target: x86_64-unknown-linux-musl
30+
use-zigbuild: true
31+
- os: ubuntu-latest
32+
artifact: linux-arm-musl
33+
target: aarch64-unknown-linux-musl
34+
use-zigbuild: true
35+
- os: macos-13
36+
artifact: macos-x86
37+
target: x86_64-apple-darwin
38+
- os: macos-15
39+
artifact: macos-arm
40+
target: aarch64-apple-darwin
41+
- os: ubuntu-latest
42+
artifact: windows-x64
43+
target: x86_64-pc-windows-gnu
44+
extension: exe
45+
name: Build ${{ matrix.artifact }}
46+
runs-on: ${{ matrix.os }}
47+
continue-on-error: false
48+
steps:
49+
- name: Build
50+
uses: asimov-platform/build-rust-action@v5
51+
with:
52+
target: ${{ matrix.target }}
53+
artifact-suffix: ${{ matrix.artifact }}
54+
binary-extension: ${{ matrix.extension }}
55+
use-zigbuild: ${{ matrix.use-zigbuild || 'false' }}
56+
glibc-version: ${{ matrix.glibc-version }}
57+
rust-toolchain: 1.85.0
58+
59+
release:
60+
name: Release
61+
if: startsWith(github.ref, 'refs/tags/')
62+
needs: build
63+
runs-on: ubuntu-latest
64+
permissions:
65+
contents: write
66+
outputs:
67+
assets: ${{ steps.release.outputs.assets }}
68+
steps:
69+
- name: Release
70+
id: release
71+
uses: asimov-platform/release-action@v3
72+
with:
73+
app_id: ${{ secrets.ASIMOV_APP_ID }}
74+
app_private_key: ${{ secrets.ASIMOV_APP_PRIVATE_KEY }}
75+
changelog-path: CHANGES.md
76+
77+
tweet-release:
78+
name: Tweet release
79+
needs: release
80+
uses: asimov-modules/.github/.github/workflows/tweet.yaml@master
81+
with:
82+
message: |
83+
📦 ${{ github.event.repository.name }} ${{ github.ref_name }} has been released:
84+
${{ github.server_url }}/${{ github.repository }}/releases/tag/${{ github.ref_name }}
85+
secrets: inherit
86+
87+
update-scoop-bucket:
88+
name: Update Scoop bucket
89+
needs: release
90+
uses: asimov-modules/.github/.github/workflows/update-scoop-bucket.yaml@master
91+
with:
92+
version: ${{ github.ref_name }}
93+
assets: ${{ needs.release.outputs.assets }}
94+
secrets: inherit

.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# macOS
2+
.DS_Store
3+
4+
# Environment variables
5+
.env
6+
7+
# JetBrains IntelliJ IDEA
8+
.idea/
9+
10+
# Visual Studio Code
11+
.vscode/
12+
13+
# Editor backup files
14+
*~
15+
16+
# Rust artifacts
17+
/rust-toolchain
18+
/rust-toolchain.toml
19+
/target

.rustfmt.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# See: https://rust-lang.github.io/rustfmt/
2+
3+
edition = "2024"
4+
match_block_trailing_comma = true
5+
reorder_imports = true
6+
use_field_init_shorthand = true
7+
use_try_shorthand = true
8+
9+
# Nightly-only unstable features:
10+
#unstable_features = true
11+
#style_edition = "2024"
12+
#group_imports = "One"
13+
#imports_layout = "Vertical"
14+
#imports_granularity = "Crate"

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* Arto Bendiken <arto@asimov.systems>

CHANGES.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## 0.0.0 - 2025-06-30

0 commit comments

Comments
 (0)