First, make sure that your shed is clean and dry. Any dirt or moisture will accelerate the rusting process. Second, if possible, store your bike inside a climate-controlled space. Extreme heat or cold can also contribute to rusting. Finally, consider using a bike cover when your bike is not in use.