Skip to content

actix-fs: Tidy up configuration capability of StaticFiles/NamedFiles #730

Closed

Description

@DoumanAsh

Subj.

Since trait based configuration makes things more complicated we're going to remove it completely

As a side note, we can also check out extra features people might need

Activity

  1. added
    A-files
    on Mar 25, 2019
  2. self-assigned this
    on Mar 25, 2019
  3. added this to the 1.0 milestone on Mar 25, 2019
  4. fafhrd91 commented on Mar 25, 2019

    @fafhrd91
    Member

    @DoumanAsh do you want to do more for for this ticket? it's closed automatically

  5. DoumanAsh commented on Mar 25, 2019

    @DoumanAsh
    ContributorAuthor

    Not really, if someone will have suggestion we can re-open. But as of now I do not think there are any API changes we need for actix-fs

  6. imp commented on Mar 28, 2019

    @imp
    Contributor

    Not sure whether it falls under this issue or not - we are routinely serving the content of tar or zip file as a group of static files. It would super cool to just specify the archive file and have its content served without unpacking it. Does it make sense? Are there any other folks out there that need this feature?

  7. fafhrd91 commented on Mar 29, 2019

    @fafhrd91
    Member

    @imp interesting idea, but i am not sure this should be part of core crate. well, it could be feature of actix-files crate

  8. DoumanAsh commented on Mar 29, 2019

    @DoumanAsh
    ContributorAuthor

    There is one concern is that it would affect performance as you'd need to either unpack it every time or have a way to unpack it into memory once...

    I'm not sure if many people would need such feature... Isn't it better to have your files unpacked for optimal performance?

  9. imp commented on Mar 31, 2019

    @imp
    Contributor

    @imp interesting idea, but i am not sure this should be part of core crate. well, it could be feature of actix-files crate

    Agree, this probably best be out of the core crate. Just wanted to share the use case and set the thinking going.

  10. imp commented on Mar 31, 2019

    @imp
    Contributor

    There is one concern is that it would affect performance as you'd need to either unpack it every time or have a way to unpack it into memory once...

    I'm not sure if many people would need such feature... Isn't it better to have your files unpacked for optimal performance?

    I am not saying it is the most universal feature, just bringing the idea forward. You are correct that if that would be a case when performance matters unpacking would be the way to go. The use case we have is a specifically low performance and the web application is compiled into the binary.
    Anyway, as mentioned earlier, a separate crate may be the most appropriate way to tackle this.

  11. fafhrd91 commented on Mar 31, 2019

    @fafhrd91
    Member

    if you'd like, you can use actix org for your crate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-files

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions